Security
  • coldrick
    Posts: 61
    Joined: Wed Mar 12, 2008 10:31 am
    Location: Queensland
    Contact:

    Security

    by coldrick » Wed Apr 09, 2008 11:13 pm

    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.
  • COBS Tech Support
    Posts: 669
    Joined: Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Thu Apr 10, 2008 6:49 am

    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.
  • coldrick
    Posts: 61
    Joined: Wed Mar 12, 2008 10:31 am
    Location: Queensland
    Contact:

    by coldrick » Thu Apr 10, 2008 10:50 pm

    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
  • COBS Tech Support
    Posts: 669
    Joined: Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Fri Apr 11, 2008 7:13 am

    If .Not. Security(6, FALSE)
    ...
  • coldrick
    Posts: 61
    Joined: Wed Mar 12, 2008 10:31 am
    Location: Queensland
    Contact:

    by coldrick » Fri Apr 11, 2008 7:37 am

    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.

Who is online

Users browsing this forum: No registered users and 1 guest