Set Variable [$prim ; Value ; PrimaryKey]
Go to layout [Layout1]
Perform scrip on server [script name]
Script is run from current window and I need to run the scrip on the current layout.
To achive this i guess I need to query current record ID (primary key) from window and pass it as parameter to the script.
In the script, read the parameter and go to that record.
How do I create the parameter? I tried set variable $$prim and $prim.
I know it's picky, Christian, and I feel really awkward bringing it up, but didn't you mean instead for the variable in the last line to be $RecordID?
Welcome Jojolito!
Also, I hate typing extra stuff in a script, but one big exception to my rule is that I will get verbose about documentation. Being explicit about the contents of a find is a great example of self-documentation that makes skimming through a script so much easier:
Enter Find Mode [Pause Off]
Set Field [ MyTable::ID ; $RecordID ]
Perform Find
After succsesfully running the script something strange happened.
I have a .gif file in a cointainer its a animation and it auto play. It works great in fmp desktop version and before running this script it worked in web direct. Now its stopped working.