cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling Update Button

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks For your Help!!!

Answers (0)