Have you tried unchecking the "Include Edit Record Toolbar" option?
Yes. Among my many combinations I tried this checked and unchecked as well as locked and not locked. I am now viewing on my iPad and having the same issue.
How is the $$Device_Type variable set?
In my initialization script, I call a script that checks status and returns a value.
In my init script I have this step:
Perform Script [ “Query User Device” ]
And then my "Query User Device" script is:
Set Variable [ $$Device_Value ; Value:Get(Device) ]
If [ ($$Device_Value = 1) or ($$Device_Value = 2) ]
Set Variable [ $$Device_Type ; Value:"Desktop" ]
Else If [ ($$Device_Value = 3) or ($$Device_Value = 5) ]
Set Variable [ $$Device_Type ; Value:"Tablet" ]
Else If [ ($$Device_Value = 4) ]
Set Variable [ $$Device_Type ; Value:"Phone" ]
Else If [ $$Device_Value = 0 ]
I used a Show Custom Dialog as a debugging step to show me that it fetched the right values. It does.
You are using FM14 and FMGo 14?
I tested on my iPhone 6 and iPhone 5 and It works correctly on my devices.
Add the show / hide toolbar script step to the first line of your startup script for testing and verify results.
OK. I now have something a bit different unless I am just noticing this.
I double checked and File > Options is checked to Hide all toolbars and to Switch to layout a blank, blue screen.
When the program starts on both the iPhone and iPad, I get a blank blue screen and no toolbars.
Schamblee, I also enabled the Hide Toolbar script step as the first thing in the startup script. So I don;t right now which one is hiding the toolbar, the one in File > Options or this script step. But at least I have no toolbar in the initial screen.
But, as soon as I load the next layout, relative to the device I am using, the toolbar at the bottom comes back, even though I script to hide it immediately after loading it. The button to toggle back and forth is working on both devices.
I know that on my Windows desktop, I sometimes have to add small pauses between script steps to allow Windows screens to catch up. Could that be happening here?
Schamblee, I disabled the script step to hide toolbars and the toolbar was missing from the initial screen. So I am guesing the selection in File > Options is working. I guess I could try turning it off and have nothing and then see what happens.
I'll go do that.
Don't switch to blue screen or hide toolbars from File Options. Under File Options select script triggers then select OnFirstWindowOpen then select your startup script. I don't use a pause and my database hides the toolbar and it does not reappear on its own. Something in your scripts is most likely triggering something to show the toolbar.
I unchecked Hide all toolbars in File > Options and the initial blue screen came up with a toolbar.
I then re-enabled the very first script step to hide toolbars and there was no toolbar on the blue screen. But again, as soon as I load another layout, even with the script step to hide the toolbar again right after it loads, I still have the toolbar showing.
Yes, I am sure you;re right. But what???
I do load the first script as a trigger on First Window as you suggest.
Possibly unrelated, but I also see that the program does not detect a change in window size when I go from portrait to landscape. I have a script trigger in the layout to execute whenever the layout resizes. The trigger gets pulled when I hide and unhide the toolbar, but not on a screen rotation.
No, that is a different issue that you have to design for.
The easies way is to design for the smallest screen then place a line at the bottom right corner then set the auto-resize locks of the line to right and bottom only. Hide this line so it is not visible.