Monday, November 24, 2008

PFC Security Q and A

- How do I enable the PFC security service?
A common place to do this the pfc_postopen event of w_frame
gnv_app.of_SetSecurity(True) //Enable security service
- How do I force security to run on a particular object
Argument can be Window, GraphicObject, or DataWindow variable containing the window, DataWindow, or window control for which security is applied.
lb_rc = gnv_app.inv_security.of_SetSecurity(lw_frame)
- How do I initialize the security service?
When initializing the security service, the last argument is used if the user was not assigned to any other group.
inv_security.of_InitSecurity(SQLCA, ClassName(iapp_object), of_GetUserID(), “Default”) //Initialize the security service
- How do I enable security on each applicable window?
In the window open or pfc_preopen event
gnv_app.inv_security.of_SetSecurity(This)

No comments:

Custom Search