Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6471 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by Guest
Posted

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

Posted

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

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.