Where do you check for those parameters? In the OnOpen script of the hosted file? That won't work, not on the first pass. The OnOpen script as configured in the File Options a file does not take parameters. The file already has to be open before you can call script in it that you can pass parameters to.
There have been many great articles on this. See if these help:
https://www.goya.com.au/category/blogtags/script-parameters (several articles)
I use a method that passes name/value pairs, and the 'name' is a local variable ($var...). When evaluated in the other script with Get ( ScriptParameter ), then all the variables are 'set' & ready for the other script.
An old method is to set values in a global that is available to the other script to parse/evaluate. Script parameter is not even used. Using this method may depend upon several factors not known by your question.
You can also open a database remotely with a URL and pass a script parameter as well as a number of variables. See this knowledge base article for more:
Thanks for your imput. Was bussy till now. Will read and check all of them.
All ready know that a OnOpenScript will not work.
Sorry for my poor englisch.
Greatings from Holland, Floor
Awesome! so many ways to do so many things in FM. I'm glad you found a solution!