on 09-26-2013 6:31 AM
I want to enable the table on click of button "Display". Can you suggest me.
Hi,
create a context attribute called say "enableTable" of type boolean, and bind it to the parameter of the table "enabled".
Then create the onAction() event of the button this way:
if (wdContext.currentContextElement().getEnableTable())
wdContext.currentContextElement().setEnableTable(false);
else
wdContext.currentContextElement().setEnableTable(true) ;
It will behave in runtime this way:
Press the button Enable/Disable and the table gets enabled:
Press it again, and it becomes disabled again.
See more hints here how to deal with adding initial context into the table:
http://scn.sap.com/thread/3427145
I hope this helps.
Best Regards,
Ervin
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 | |
9 | |
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.