cancel
Showing results for 
Search instead for 
Did you mean: 

How to give url to an tree element?

Former Member
0 Kudos

I have created a 2 views

The first view contains a Tree Control like:

  • MainMenu 1

- submenu 1

- submenu 2

  • MainMenu 2

- submenu 1

- submenu 2

  • MainMenu 3

- submenu 1

- submenu 2 and a tranparent container in the right side of tree.

The second view contain some contents.

I want to give action for the tree element like if I click the submenu , it should display the second view in the transparent container of the first view.

Can anyone pls suggest me?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Abdul,

first of all create a viewset with two columns. In the first column the tree view is displayed and in the second column the content view is located. Then create a navigation path from view1 (tree view) to view2 (content view). Then fire the plug in your action handler method.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Abdul,

I guess what you need is a Link To Action table column. You can achieve same by following the below mentioned steps:

1) click on table and try to bind it to the context node

2) change the property "cell editor of table column" to "link to action" of the column/attribute from where you would like to trigger the action.

3) bind the "visible" property of VC to a context attribute of type boolean

4) set this attribute to abap_true in event OnAction__()

this will display your view at that location.

Hope this helps.

Regards,

Anoop