Hi
Is there a way of turning off the “greyed” out effect of a field/element that is viewable but not accessible? This makes it harder to read the field contents which i don’t understand as it is supposed to be viewable!
Hi
Is there a way of turning off the “greyed” out effect of a field/element that is viewable but not accessible? This makes it harder to read the field contents which i don’t understand as it is supposed to be viewable!
Also, why when i make a button viewable but not accessible it makes the button disappear from the form? Its supposed to be viewable! It just shouldn’t do anyhting, or am i missing something?
make the field read_only instead of enable = false
for the button: are you using: enabled = false ??
visible = false will not show the button.
Hi
i should have made myself clearer, i am really just experimenting with the security settings for particular users. The form elements in the security dialog are either accessible and viewable or not. If i make a form button here viewable but not accessible it disappears! What i thought it would do is be viewable but just not do anything when you click on it.
Your button is probably a graphic? If so, then it will disappear and not “disable.”
If you have a “real” button (with or without a graphic) - and then disable it - it will appear “grayed out.”
Thanks Bob
Buttons were graphics, normal buttons will “grey” out. Is there any way to stop this effect, especially for field data (makes it harder to read).
Err… why do graphic buttons disappear if their security property is set to visible?
why do graphic buttons disappear if their security property is set to visible?
I actually appreciate this fact, in that if a user does not have the right security level to perform a button’s action, it is best (IMO) to not show them the button at all. Nothing is more annoying to me than working in an application that has buttons that either inexplicably do nothing when I click on them, or that only put up an alert informing me I do not have appropriate permissions to use the button … “then why show it to me, dammit?”
Developers do have the option in Servoy to use graphics rather than native buttons, as you are doing. This gives you fine-tuned control to conditionally load one of two images … the “active” looking button-graphic is loaded if the user has appropriate permissions to use it, and - if you prefer to present a grayed-out button rather than simply no button at all to non-authorized users, then make your own grayed-out version of your graphic and have it display if the current user does not have appropriate permissions to perform the button’s function.
hope this was clear,
kazar
Hi Rodney,
rodneysieb:
Err… why do graphic buttons disappear if their security property is set to visible?
When you set the mediaOptions property to Crop then the image will be dimmed when disabled.
When set to reduce,enlarge or reduce/enlarge it will make the image go invisible when disabled.
thanks, Robert, for that arcane & useful tidbit!
kazar