Applies To: |
|
Summary: |
Is there any way of associating privilege in a Super Genie? When I put ?INT 10? in the privilege field, I get a compile error "Bad Integer Value". |
Solution: |
Both the Area and Privilege fields
are not supported for Super Genie substitutions by
design. One documented workaround is the use of cicode in the "disable" or "visibility" fields, which mimics the privilege functionality. To implement this workaround: All object privilege levels are set to 0. The desired privilege level is passed into the supergenie code as an integer, nPrivilege. The following code is added to the supergenie cicode. //Associate Privilege This calls the following function: The following code is used in the object "disable" or "visibility" field as appropriate. e.g. Not GetPriv(?10?,0) (the GetPriv() function checks if the current user has a specific privlege level, refer to the help for more information)***Submitted by Graham Ryan, Barwon Water*** |
Keywords: |
Super Genie, Privilege, Area |
Related Links
Attachments