on 04-16-2009 8:40 AM
Hi all,
A table is to be populated with the values declared at the domain level. I have declared one node and one attribute inside that node and have binded the "Value" property of the table with that node , in the very same way we used to do it for "radiobuttongroupbykey" or "dropdownbykey". but the values are not coming in the table. Please help...
Hi,
First make a structure of node type in the following way.
* Structure of type context node
TYPES : BEGIN OF gt_currentdetails,
ca_visatype TYPE string, " ca_vistatype is one of attributes
ca_provider TYPE string, " ca_provider is also attribute of the node which is binded to the table
END OF gt_currentdetails.
After that create an internal table and work area of this structure type which You have created above in the following way.
* internal table and work area of type context node
DATA : itab_currentdetails TYPE TABLE OF gt_currentdetails,
wa_currentdetails TYPE gt_currentdetails.
After that create an internal table and work area of type the table which u want to bind in the following way.
DATA : itab_0037 TYPE TABLE OF p0037,
wa_0037 TYPE p0037.
now loop at table itab_0037 and keep transferring values from wa_currentdetails to wa_0037 one by one.
And in that loop only keep appending values from work area to table itab_currentdetails.
and finally bind internal table with the node like this.
* Binding the internal table to node
lo_nd_cn_current->bind_table( itab_currentdetails ).
I hope it helps.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Make sure that you binded Table's Data source property with Context Node and Table Column' Value Property with the Attributes.
For displaying data into the Table, you have to supply Values to this Context node.
This can be achieved in two ways :
1. Make a supply function for the node and write the code there to populate the table.
2. Write the code to populate table in Wd doinit.
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.