cancel
Showing results for 
Search instead for 
Did you mean: 

Creatin UI element TREE and on CLick display View onto Right

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

uday_gubbala2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks

shaik_sajid
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

I want to display another view to the right. How I can call another view there.

There may be multiple views but which to be called is based on the click onto the tree hierarchy.

Thanks

Depesh