on 01-10-2006 11:40 PM
Hi,
How could I get the cell value from table in View or
in CustomController from RFC
Thanks
Hi Shah,
I am not very sure about your requirement. But I suppose you are fetching some table data through an RFC and you need to get a particual cell's value from the fetched data. If this is the case:
When you import an RFC, as you might be aware, a WD node will be created corresponding to every R/3 structure involved. Now let us call the node corresponding to your table as 'MyNode'. 'MyNode' will have attributes created in it for each column type of the R/3 table. Now to hold data in 'MyNode', elements will be created which corresponds to the rows of the R/3 table. So for each row of R/3 table, an element of the corresponding node will be created and each element will have it's own values for each attribute.
You can access an element at index 'i' as:
wdContext.nodeMyNode().getMyNodeElementAt(i);
Let us say, you have an attribute 'MyAttribute' inside 'MyNode' and you want to retrieve the data of this attribute for the i'th row. Then from WD yu write :
wdContext.nodeMyNode().getMyNodeElementAt(i).getMyAttribute();
Hope this helps you,
Best Regards,
Nibu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A Web Dynpro Table T has a "data source" context node S(T).
Let C be a column of T, let E(C) be the cell editor of C, let P(E) be the primary property of E displayed in the table and let A be the attribute of node S(T) to which P(E) is bound.
Then the cell value V(C, i) at column C and row at index i is given by:
V(C, i) = S(T)(i).A
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.