Raybaudi Posted November 2, 2005 Posted November 2, 2005 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 ?
comment Posted November 2, 2005 Posted November 2, 2005 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.
Raybaudi Posted November 2, 2005 Author Posted November 2, 2005 Thank you comment. So, if I understood you correctly, if that command was inside a custom, you'll get nothing !?
comment Posted November 2, 2005 Posted November 2, 2005 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?
Raybaudi Posted November 3, 2005 Author Posted November 3, 2005 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 !
comment Posted November 3, 2005 Posted November 3, 2005 I believe this is possible using a global variable.
Recommended Posts
This topic is 6963 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now