Hide buttons by user scriptcase

broken image
broken image
broken image
broken image

It’s solve with a form, called from standard New Button. Hello in a grid, i only need add records. This works fine, but one of my case options (-h) is made for showing help info and can now only be run if the script is run as root, but ideally this should also be able to be used when not run as root. scaplconf (gridInformesCasosAcompanantes, ligedit, off) in ScriptInit. Scriptcase Applications Hide new grid button at runtime To hide the grid buttons we will use the scbtndisplay () macro, this macro shows and hides the buttons in the toolbar at run time. In the example, we wanted to hide the Settings item from user options We then chose to pass a global variable as a parameter in the header, in order to validate the allowed users. I need the script to be run as root and as it is not advised to use root in the script itself, i made an if statement that checks if the script is run as root.įrom there the else command runs the script itself as intended.

broken image

I am running in some problem making a bash script (for showing all disk WWN's in the server, full or short). Hide 'pencil' based on user Scriptcase 8 Discussion grid, link, security, form, pencil mgreven70 May 7, 2020, 7:58pm 1 I have created a link between a grid and a form using the scriptcase tutorial.

broken image