Hide block when pressing button in grid

Hi There,

users can show hide fields with the option column. that’s nice.
i want users to change the view (read shown fields) with a button.
eg. when pressing the button REVIEW i want to hide the block RESULT and show the block REVIEW with corresponding fields in it.
eg. when pressing the button RESULT i want to show the block RESULT and hide the block REVIEW with corresponding fields in it.

so i tried:

sc_block_display(LEERMIDDELEN, ‘on’);
sc_block_display(EVALUATIE, ‘off’);
on a button

that did’nt do the trick. any suggestions?

what about setting a session Variable with the buttons… then look for those vars in the proper event to hide-show the blocks.

goog idea! @nwdbs . i don’t like standard users who can choose columns , it’s confusing for a regular user