on 07-02-2011 3:56 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.