I have a start up script that fails randomly for FMGo users.
The strange thing about it is the only way get it to not fail after the initial failure is to delete and re-download the FMGo.
the file used to be too large to DL without wifi but thankfully that restriction has been lifted.
I have on TO with one global field called StartUp::AccountName that is related to StartUp_Account::AccountName
My script goes as follows
Allow User Abort [ Off ]
Go to Layout [ “StartUP” (StartUp) ]
Set Field [ StartUp::ACCOUNTNAME; Get ( AccountName ) ]
If [ IsEmpty ( StartUp_Account::id ) ]
Show Custom Dialog [ Message: "There is an error loading your account settings. Please notify your developer."; Default Button:
“OK”, Commit: “No” ]Exit Application
End If
Set Field [ Globals_Ui::id_account; StartUp_Account::id ]
and so on
I can understand that it would fail once, but attempting to repeat the script fails as well. until the whole app is deleted.
Any ideas?
Is your "failure" what happens when you get the custom dialog message? Or is there some other kind of failure occurring?
Is the iOS device opening a file that's a client of a hosted file or one local to the device? Perhaps a local file with data references to a hosted copy?
The first thing that I'd try is adding commit records immediately after the set field step to see if that makes any difference here. I'd also add Startup::accountName to the custom dialog message so that I can see what account name was actually entered into that field.