January 23, 200719 yr Is it possible, and if so will someone help me write an open script that will send a user a specific layout based on thier account/privileges. I am almost certain this can be done but I can't find the right area in script maker where I can insert a calculation to make this determination. Basically: On opening database, If Account name = XXX goto layout YYY If Account name = AAA goto layout BBB etc. Thanks in advance for any help. steve
January 23, 200719 yr Hi, There are two functions that you can use, one for privilege sets, one for account name... below: Get(PrivilegeSetName) Get(AccountName) You can use these to conditionally go to the layout you prescribe based on the result of an IF[] calc. HTH
January 23, 200719 yr Author Thanks! You guys (and gals) are the best. The follwoing works for me and has the added benefit of showing only the records for the current user. A requirement of the client I am working for. Records created by other users are only visable to the admin account based on the custom privileges set in the define "accounts and privileges" custom privileges sub set. Allow User Abourt [Off] Set Error Capture [On] Go to Layout ["Welcome Screen"] Pause/Resume Script [Duration (Seconds0:3] If [Get(AccountName)="admin" Go to Layout ["Admin Privileges"] Else If (Get(AccountName)= "Client_XYZ" Go to Layout ["Client_XYZ_Privileges"] End If Enter Find Mode [] Insert Calculated Result [select;database_name::Record_Creator; Get(AccountName) Perform Find [] Go to Record/Request/page[Last] Thanks Again, Steve
Create an account or sign in to comment