I'm writing a script to expose or hide selected controls based on user. I would like the script to be operational ONLY in Maintenance mode, not Inquiry. In the script, how do I identify whether the panel is in Maintenance or Inquiry mode?
I'm writing a script to expose or hide selected controls based on user. I would like the script to be operational ONLY in Maintenance mode, not Inquiry. In the script, how do I identify whether the panel is in Maintenance or Inquiry mode?
oSession.StartProgramName
Returns the full start program name for the session. Ex: If in S/O Entry it will return "Sales Order Entry"
Another method is checking the oSession.AsObject(oSession.Security).TaskType property.
However both TaskType and StartProgram can be misleading if a user has a role where only "View" is checked for something…
oSession.StartProgramName |
Returns the full start program name for the session. Ex: If in S/O Entry it will return "Sales Order Entry" |
Bingo. That did it! Thanks
Another method is checking the oSession.AsObject(oSession.Security).TaskType property.
However both TaskType and StartProgram can be misleading if a user has a role where only "View" is checked for something like Item Maintenance.
The surest way to tell whether or not a user can edit, create, or delete records is by checking the oBusObj.SecurityAccess property.
Thanks for this additional information. oSession.StartProgramName did the job for me in the script I was working on at the time but this more detailed information will come in handy in future customizations. Thanx!
*Community Hub is the new name for Sage City