cancel
Showing results for 
Search instead for 
Did you mean: 

How to give hyperlink action in hierarchy table

Former Member
0 Kudos

Hi,

i've developed Hierarchy Table. There i need hyperlink action like below.

In above screen i need hyperlink action for YTTS-Security. I used Normal table hierarchy only.

Kindly help on this issue.

Regards,

Jack.

Accepted Solutions (0)

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi Jack,

As suggested by Amy, you can consider of using LINKTOACTION ui element as cell editor for your tree element.

You need to have an attribute LINK_ENABLE of type WDY_BOOLEAN inside the tree node and bind it to the property ENABLE of linktoaction ui element. Whenever the link is to be displayed, you can pass the value ABAP_TRUE to the attribute LINK_ENABLE else pass ABAP_FALSE, so that link appears in the tree element key.

Regards,

Rama

amy_king
Active Contributor
0 Kudos

Hi Jack,

One option would be to use a LinkToAction as the cell editor in your TreeByKeyTableColumn instead of a TextView. You could bind the enabled property of the LinkToAction cell editor to a context attribute in your data source table. When enabled=false, the LinkToAction will appear only as text (no link). When enabled=true, the LinkToAction will appear as a link.

Cheers,

Amy