I have a button I created on a form toolbar, but I want to disable it, if a condition is met.
sc_btn_disable does not work. Does anyone know how?
Thanks
Tony
I have a button I created on a form toolbar, but I want to disable it, if a condition is met.
sc_btn_disable does not work. Does anyone know how?
Thanks
Tony
It will be easier to create it only if the condition is met. This way you don’t have to disable it.
I use it in the On Load event of forms and it works fine for me.
Make sure the name of the button is correct.
example:
if ( [usr_link] == “N”) {
sc_btn_display(‘Link Asset’, ‘off’);
}
else {
sc_btn_display(‘Link Asset’, ‘on’);
}
Thanks,
sc_btn_display can (and does) work OK for me, but disable does not.
Good lateral thinking.
Tony
Looking at the docs sc_btn_disable is only for Menu app
This SC YouTube video says there is a macro named sc_btn_disabled… have you tried that one?