cancel
Showing results for 
Search instead for 
Did you mean: 

Changing The text of the button on click of it in a table Ui element

Former Member
0 Kudos

Hello experts,

I have a table Ui element with 4 columns of which the fourth one has a button "Delete".

Now when i click on the button,the text should be changed only for that particular button.

If i try binding the table text to an attribute then all the button's text would change which is obvious.

Is it possible to change the text of that button alone.

Regards,

Shravan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shravan,

You need to have a context attribute say 'buttonLbl' of type 'STRING' in the context node which you are using as datasource to the TABLE UI element. And bind 'buttonLbl' to the Button's text. Are you enabling the lead selection for the TABLE? Then its very easy. What you need to do is to read the lead selected element of the context node which you bound to TABLE using get_element() and setting the attribute 'buttonLbl' to a different text as per your requirement. Since you are changing the value of 'buttonLbl' only for the row where the button is clicked, only that button text would change.

Hope this helps!

Best Regards,

Srilatha

Answers (0)