November 2, 200520 yr Hi all friends can someone explain me this new function of FM8 ? Also , with event script, can I fire a script and have this result in the calc field ? Something like: S4HU_EventScript( Get(FileName) ; "MyScript" ;"")& Get(scriptResult) If it's possible, can you make an example for me ?
November 2, 200520 yr This function is used together with the Exit Script script step, where you now have the option to specify the result. See the help on Exit Script for explanation and example. As with most Get() functions, much depends on the time of evaluation. Script result is created by exiting a script, and Get (ScriptResult) has no value if there is no other script running at the time of evaluation. So I don't think your example would work. Nor is there any need for this, because you can set the field directly by the called script, or use a global variable that will persist after the script has run out.
November 2, 200520 yr Author Thank you comment. So, if I understood you correctly, if that command was inside a custom, you'll get nothing !?
November 2, 200520 yr Oh, you might get SOMETHING, it depends. But I doubt you'll get anything USEFUL. For example, if an unstored calc field has the formula, AND there is a second script that receives the results, AND there is a Refresh Window step - then the field will show the script result - until you click into it, or otherwise refresh the screen again. Is this a solution looking for a problem?
November 3, 200520 yr Author Yes and No. I only wished to know if I can fire a script with S4H from a custom, make something and return the result of what I maked to the custom... Something that can GO and COME BACK !
Create an account or sign in to comment