If you go to "File" - "File Options" and then "Script Triggers" you can perform a script "OnFirstWindowOpen".
This will perform a script which can then check which version of Filemaker you are using.
If a person is using Filemaker Pro you can then go to a desktop layout, if it's iPhone or Ipad you can go to specific layouts for those devices.
You could start your script with an If Statement.
And the "Get Device" function:
Info here: Get(Device)
If [ Get (Device) = 3 ]
Go To Layout (iPad Layout)
And this way you can create 4 If statements that all check for a specific device type and send you somewhere accordingly.
I hope this is what you were looking for?
1 of 1 people found this helpful
Create a start up script and include the following steps (your start up script can/should have more steps)
Set Variable [$$Device; Value: Get(device)]
If ($$Device = 3)
go to iPad Layout
Else if ($$Device = 4)
go to iPhone layout
Else if ($$Device = 5
go to Android layout
go to computer layout
After the start up script is completed go to File > File Option... on the menubar. Select Script Triggers. Select OnFirstWindowOpen and click the Select button to add your script. The script will now run every time you open the file.
BTW, the server does not play a role in determining the device. The Get function that runs on the file on the client device determines the type of device.
Several of the starter solutions demonstrate this. Check the File Options and the scripts. Thanks, Guy!
Sent from miPhone
So do i need to build a table of global variables to include all the devices I use or are they in the system somewhere?
If ($$Device = 3)
I have a global table for things my solution needs, but if they are not in the system would build a table just for all these.
BINGO I NAILED IT!!!!!!!!!