Newbies jaberwok8U Posted July 27, 2006 Newbies Share Posted July 27, 2006 I would like to use a script on file open that uses the account to determine the starting layout. I want guests to get one layout, users to get another and admins to get a third. I tried get(accountname), but it returned the account name for my machine rather than the account name used to log in. Link to comment Share on other sites More sharing options...
Genx Posted July 28, 2006 Share Posted July 28, 2006 Get(accountName) returns exactly the account name used to login to the database. In any case, it probably won't help you, what you might try instead is: Get(privilegeSetName) Link to comment Share on other sites More sharing options...
Yogesh Nath Posted August 3, 2006 Share Posted August 3, 2006 Cool, this is what I was looking for. I haven't tried it yet but lets see. Link to comment Share on other sites More sharing options...
Yogesh Nath Posted August 6, 2006 Share Posted August 6, 2006 Genx, I gave it a go but it I can't seem to figure know how to use Get(privilegeSetName), my code was something like, If(Get(privilegeSetName)=accountname but Fm says there is no table. So I am stcuk there, any help to start off. Thank you kindly Link to comment Share on other sites More sharing options...
Genx Posted August 6, 2006 Share Posted August 6, 2006 no no no.. you said that you wanted to go to a specific layout if your user had admin priveleges, a different one, if they had other priveleges etc. etc. So, you would use: If[Get(PrievelegeSetName) = "Administrator] Go To Layout[Your Layout For Admin Users] Else If[Get(PrivelegeSetName) = "Managers"] Go To Layout[Your Layout For Managers] Else If[etc etc] . . . . . End If Or.. by account name If[Get(AccountName) = "Bob" ] Go To Layout[Layout For Bob] Else IF[Get(AccountName) = "Jen" ] Go To Layout[Layout For Jen] . . . . End If Link to comment Share on other sites More sharing options...
Yogesh Nath Posted August 7, 2006 Share Posted August 7, 2006 Ah...so that is the part I was missing,,,cool Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6473 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now