July 20, 201015 yr Is it possible to detect if a script was triggered from the client or the server? I'm thinking of something like: Get ( ScriptOrigin ) // 0 = client and 1 = server Thanks.
July 20, 201015 yr It's not totally clear to me what these functions will return when FMS is running the script: Get(HostApplicationVersion) Get(HostIPAddress) Get(HostName) Get(UserName) One of those might be all you need. Someone here probably has a definitive answer, but maybe this: Get(SystemIPAddress) = Get(HostIPAddress) Or, you could turn error capture on, perform a script step that's not compatible with Server, and test for Get(LastError).
July 20, 201015 yr Author Or, you could turn error capture on, perform a script step that's not compatible with Server, and test for Get(LastError). Hmmm... that's interesting.
July 21, 201015 yr Is it possible to detect if a script was triggered from the client or the server? Thanks. The creator name ( user name) for a script run by a server schedule is the name of the schedule.
July 22, 201015 yr Thanks, Bruce, I knew there had to be something like that. Is this documented somewhere?
Create an account or sign in to comment