Page 1 of 1

Security

Posted: Wed Apr 09, 2008 11:13 pm
by coldrick
The ability to assign security codes to each tabbed page on a screen such as the individual tabs in the stock screen would be good.

The ability to hide fields from some users whilst locking from others would also be helpful. Currently, if you hide a field from some users, all users above their level can not only see the field but they can also edit the field. A dual level security such as "Level to see field", "Level to edit field" would be helpful.

Posted: Thu Apr 10, 2008 6:49 am
by COBS Tech Support
The Microsoft Windows standard API does not permit individual tabs to be disabled or locked. It is very unlikely that we would want to now move away from Windows standards in order to implement such a behaviour, given our enormous internal efforts to ensure that our software meets Windows standards. The Windows API also does not permit coloured tabs, so this feature will not be available in CAPITAL V8. (The tabs implemented in Series 7 are Windows non-standard.)

Because your second request would add significant complexity to the configuration of user screens and at best would only be used by a tiny fraction of the user base, it is unlikely that it would meet the criteria necessary to have it included in the standard package. You would be better off using the script functions SCRLock() and SCRHide() in conjunction with the function Security() plus other techniques, to implement a custom solution that would then do exactly what you wanted.

Posted: Thu Apr 10, 2008 10:50 pm
by coldrick
Yep. Got it working with

if .not. Security(6)
SCRHide("EUS100")
End If

But can't get rid of the "Security Access Denied" message. According to the help files, we should need to use the optional parameter lShow in security in order to make the "Security Access Denied" message show up, but it shows up by default. Tried the obvious parameter lHide, but it didn't like that one.

How can we turn off the "Security Access Denied" message?

Rgds
Barry

Posted: Fri Apr 11, 2008 7:13 am
by COBS Tech Support
If .Not. Security(6, FALSE)
...

Posted: Fri Apr 11, 2008 7:37 am
by coldrick
Yep. Missed that one. Too many late nights lately.

lShow is just the parameter name - we need to tell the script whether the parameter is true or false.

Thanks.