on 06-24-2009 6:03 PM
Hi Experts,
I want to create tree on the left hand side of view and on clicking either parent or child, I want to display details in corresponding view in the right hand side.
Could you please provide me the approach for this?
Thanks
Depesh
Hi Deepesh,
I guess that you would be better off using an [NavigationList |http://help.sap.com/saphelp_nw70/helpdata/EN/98/9faf4241d4b911e10000000a1550b0/content.htm]UI element for this particular scenario.
The NavigationList allows to display hierarchical organized content by means of a tree-like structure. However, the only difference is that this element does not allow to define nodes that can be expanded and collapsed like a Tree does. Also whenever you select an selectable list item the system triggers an event by name "Select". You can write your coding within the event handler of this method. This UI element is 1 of the elements being covered in the [NET312 course|http://www.sap.com/services/education/catalog/course.epx?context=[[|NET312|||062|G]]|].
Regards,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
create a tree ui element.
under it create Tree_item_type.Create an action for this.
create a context node and with 1 attribute (type string)...Bind this node to the datasource of the TRee UI element.
Now in the right side u can create any ui element in which data should appear based on the click of tree (for this create another context node with attribute).
now fill the tree with values in wddoinit method of view
and code for displaying values in right side ui element based on the click on tree should be written in the action method which we have created above for the tee_item_type.
regards
Sajid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.