3 Replies Latest reply on Jul 30, 2012 2:07 PM by philmodjunk

    Accounts/priviledge sets/extended priviledge sets questions.



      Accounts/priviledge sets/extended priviledge sets questions.


      Hello everyone.  Was looking for a little guidance with this question.  I use FM Pro 12, with FM GO.  I created separate layouts for my database for iPhone and iPad.

      What I would like to do, when I log in on a portable device, I want that device to only have access to the layouts made for that device (iPad can only switch between iPad layouts).

      I am able to do this with separate accounts.  I log in on the iPhone, with my iPhone account set to only let me open certain layouts.

      Can I do this by scripting, so I don't need 3 separate accounts?  I do have a script trigger set for "On First Window Open", which determines which device it is opening on, and opens the correct starter screen, but I can go to any layout on the database unless I open in a separate account.

      Any thoughts on how to attach privileges to devices with scripting?
      As always, any help is greatly appreciated





        • 1. Re: Accounts/priviledge sets/extended priviledge sets questions.

          The details depend on how you design your database to control navigation from layout to layout. You can, for example, hide and lock the tool bar (also called the status bar) in your onFirstWIndow open script and use scripted buttons or your own drop down list with script trigger to take a user to other layouts. If you use that interface design, all of these scripts can select the layout that is appropriate for the device in use by the current user.

          You can also set up onLayoutEnter script triggers to check the device information and change layouts if needed to use one appropriate for the current device in use.

          • 2. Re: Accounts/priviledge sets/extended priviledge sets questions.

            Once again, thanks for your help Phil.  I do have the navigation buttons, I just thought maybe there was a script that would find the device, then apply only certain user privileges to limit the layouts.  For example, when it finds an iPhone, it goes to the privileges that only allow iPhone layouts, etc.

            I think I'll be retired by the time I finally get this database the way I (think) I want it.

            Thanks again


            • 3. Re: Accounts/priviledge sets/extended priviledge sets questions.

              Yes, but as far as I know, you can't where you can do it with the script. (Keep in mind that if you could do it and FileMaker Inc. implemented it like they do record level access (as opposed to layout access), you'd still be able to go to that layout, but you'd find it covered by a grey screen with the words "no access" where the script avoids taking the user to that layout in the first place.