cancel
Showing results for 
Search instead for 
Did you mean: 

Table disable

Former Member
0 Kudos

I want to enable the table on click of button "Display". Can you suggest me.

Accepted Solutions (0)

Answers (1)

Answers (1)

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Thank you Ervin

It is working