I've set our system to switch to our home layout on login.
Is there a way I could set it so that depending on the users privilege they go to their own module within the system?
Or is there a way to do this without privileges?
Go To FileOptions and use the OnFirstWIndowOpen trigger to run such a script.
I would specify an initial page in FileOptions and make sure that it doesn't have a trigger so that
a) it doesn't interfere with the script run by the above trigger and
b) you don't accidentally trip such a trigger when working with the file.
You can so something similar to:
If [ get ( AccountPrivilegesetname ) = "PrivilegeSetNameHere" ]
Go to Layout
If you have a lot of privilege sets, you can set up a table of privilege sets with a specified layout name or number in the table for each. Your script would then look up the record for the current user's privilege set to determine which layout to switch to.
You can also check for an extended privilege instead of a privilege set. This can enable you to assign the extended privilege to multiple privilege sets and then all can be directed to the same layout by checking for the user's extended privilege.
I take you would need to have a script trigger on the landing page for this to work?
Me being stupid I didn't realise you needed the brackets on the priviledge name.
Retrieving data ...