Attempting to disable some buttons on a screen. I checked off the 'Initially Disable' checkbox in the screen design but the buttons still remain enabled at first opening/running of the screen. I re-generated the screen and no success. Any ideas??
Thanks
Do you have a SHOW GETS ENABLED somewhere? This will toggle your Initially Disabled setting at runtime.
Let me add to jschenke's post.
If you have a command button set, i.e., more than 1 button for a variable, you can toggle the status of the individual buttons by using:
SHOW GET abc, 1 disabled
SHOW GET abc, 2 disabled
SHOW GET abc, 3 enabled
This will disable the first two buttons, and leave the third enabled. Also, if a single button is disable via the:
'\\' picture clause, like \\Quit, it can later be overridden with the SHOW GET abc ENABLED also.
Dave S.
There is a SHOW GETS ENABLE in the REFRESH procedure but removing that messes with operation of the other buttons.
I've tried adding 'SHOW GET ... DISABLE' statements in the setup code snippet without success.
Also, if I create a ButtonSet Procedure, where or which code snippet do you access the READ statement?
thanks
SHOW GETS ENABLE enables ALL gets.
After the SHOW GETS ENABLE statement in the refresh snippet, put in the code to disable your button(s) you want disabled. The setup snippet happens before the refresh snippet so it won't work there.
Or, you can put the buttonset call in the refresh snippet.
Dave S.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.