Joseph31 Posted March 5, 2007 Posted March 5, 2007 (edited) Is there a way to make FM default to a layout depending on who logs in? IE: A Personal Welcome Page or Home Page? Oh -- I am using FM Sever. Thank you, Joseph Edited March 5, 2007 by Guest
Vaughan Posted March 5, 2007 Posted March 5, 2007 Yes, though I assume this is through the FMP client and not IWP. Each user needs to have their own FMP account. Create a script that uses the Get (accountname ) function to select the appropriate layout. Then using the File Options, set this script to run at file open. If [ Get( accountname ) = "michaeld" ] Go to Layout [ Layout 1 ] Else If [ Get( accountname ) = "thomas" ] Go to Layout [ Layout 2 ] Else Go to Layout [ Layout 3 ] End If
Joseph31 Posted March 5, 2007 Author Posted March 5, 2007 Do you need to check perform script box on everyones computer or just one? Also if I need to set this on everyones computer Can I just use the switch to layout option (there home pages will never change) Joseph
omegagoh Posted March 6, 2007 Posted March 6, 2007 Dear All, What about assigning Account Name to the respective Layout Names? Then you can go to the Layout directly (based on the Account Name). But do take note of the time required to maintain the layouts. If the only different is the Account Name, then may consider using Set Variable or Global Field which ever is your preference. Best regards, Omega Goh The FileMaker Specialist Speedy Scaleable Solutions
jamesducker Posted March 6, 2007 Posted March 6, 2007 Assuming the file is shared on the network, you only need to do this ONCE and it will apply to all users. It would be best to keep the number of layouts to a minimum, not one per user as that will get troublesome to maintain. Supposing you have salespeople and technical people, and want the two groups to see a different page but each one should see their own name. You could create two layouts (named after the privilege sets, so suppose one is called 'sales' and the other called 'tech'). Then your startup script should say, simply: go to layout [by name, get(privilegesetname)] You could then display the logged-in user's account name on the page, by defining a calculation field called account_name as: get(accountname) and adding a line of text to the layout that reads "Welcome, >!" Hope this helps. James
Joseph31 Posted March 7, 2007 Author Posted March 7, 2007 Can you explain more about what you mean... All I have is 6 home pages. So it should be pretty easy. Thank you in advanced Joseph
Recommended Posts
This topic is 6471 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