on 06-08-2009 9:27 AM
Hi ,
I have a requirement.I have a table where i need the Button "Update" to be enabled only when i have atleast one entry in the table.If there are no entries ,i want this button to be disabled.
Please help.
Regards,
Suvarna
Create a boolean, calculated context attribute "ButtonEnabled" and bind the "enabled" property of the button to it. Implement the get-method like
boolean getButtonEnabled(...)
{
return wdContext.node<TableDataSource>().size() >= 1;
}
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.