Thanks for your help, Sky.
The issue I have now is that, for a layout I've instructed to hide the status bar, when I now want to edit this layout further my status bar has vanished from layout mode as well?! This obviously means that the layout navigation drop down has also vanished and I cannot get away from here.
Have you ever come across anything similar?
Ok, scratch that...
I've put an additional line into the On Enter script of:
If (GetDevice) = 4 Show/Hide Toolbar (Hide) else Show/Hide Toolbar (Show)<<Forgive the quasi code.
This ensures that when on the PC, the toolbars for this layout are visible, but still remain hidden on the device.
Thanks for your help Sky
Yep, that is a good solution if it is ok for the toolbars to be shown on desktop, i.e. FileMaker Pro.... You could also base it on Privilege Set name, so that the toolbars only get hidden for non-Full Access users, such as:
If [ Get ( AccountPrivilegeSetName ) ≠ "[Full Access]" ]
Show/Hide Toolbars [ Include Edit Record Toolbar; Lock; Hide ]
Show/Hide Toolbars [ Show ]
Hidden Toolbars are not locked and the user can show them or hide them with command+alt+S.
Hidden Menu bars can be locked but then the items on the hidden toolbar can still be activated using Command keys.
I also encountered the hidden status bar problem.
So, when I close my file I add to show it.
Also, there is a Mode Change Trigger that you can add to your layouts to show the status bar, menu bar, tool bar when entered layout mode.
Also adding a script to do this that can be called with a command key is useful.
I have displaying in the 1-9 script menu are (the first 9 menu items in the script editor that are checked) This is for the developer menu.
1: Go to Dashboard
2: Show all stuff (menu bar, tool bar, status area, etc and open layout mode.)
To the original question:
Use this set of IFs
If(get(systemplatform) = 4
xxx this is the browser view and needs special care
else if Get(device) = 4 // iphone
hide tool bar or show tool bar // depends on the layout
else if get(device) = 3 // ipad
else if get(device) = 2 // windows and maybe touch pads
else if get(device) = 1 // macs
Using this as an layout enter script lets you control precisely what is seen on a particular device.
Trigger | on layout enter form
Trigger | on layout enter report
Trigger | on layout enter dashboard
This triggers are applied using the on layout enter option in the layout editor.
You can also wrap this with ifs for privilege sets.