March 5, 200718 yr 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, 200718 yr by Guest
March 5, 200718 yr 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
March 5, 200718 yr Author 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
March 6, 200718 yr 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
March 6, 200718 yr 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
March 7, 200718 yr Author 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
Create an account or sign in to comment