cancel
Showing results for 
Search instead for 
Did you mean: 

Enable Buttons after selection of row in a table

Former Member
0 Kudos

Hi All

Could any one give me help in this. I have a table, in table tool bar some buttons are there. at first time buttons are in disable mode, when user select any row in the table the buttons should be in enable mode. how to do this? help me

Thanks,

kris.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can have an action event at table onselect event, in that event just enable and disable the button.

Thanks!

Former Member
0 Kudos

Thanks madhu and sheik

Thanks,

kris.

Answers (1)

Answers (1)

Madhu2004
Active Contributor
0 Kudos

hi,

for table you have lead select action. you can write the code in this ction method to enable and disable the buutons based on the lead selection.

or you ca alsoput your code in modify view and check if the instance of element is bound then enable else disable,

lo_element = lo_node->get_element(). Lo_element will be bound only if there is a lead selection in the table.

if lo_element is bound.

enable the buttons.

else.

disable the buttons.

endif.

Regards,

Madhu