on 2005 Nov 16 10:08 PM
How do I display only one field of data from a SAP table structure, using a .net label control in a ASP.NET web page?
Message was edited by: Aaron Thomas
Code:
this.Label.Text = mySAPTable[0].Field;
Databinding:
If the proxy or table is on your WebForm designer, you can databind the label's Text attribute accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do have SAP Proxy on my web form. I take the following steps:
1. Add label control
2. Goto the Databindings property in the Properties panel
3. Click to bring up the Databindings dialog
4. Select the "Text" property.
5. Under "Simple Binding" expand the SAP table return by the BAPI and select the column from the table that I want to display in the label control (this is a table structure that always returns only 1 row).
The BAPI also returns a second table which I have bound to a datagrid. When I execute the web app the datagrid properly binds and displays records from the second table but the label control does not display anything.
User | Count |
---|---|
69 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.