Gus Posted April 5, 2009 Posted April 5, 2009 Forgive my ignorance.... Is there a way to move a global variable defined in a script as $$Var1 from File1-Table1 to another File (say File2-Tablex). e.g. In file1, script sets $$Var1 as recordID, then goes to a separate file2-Tablex to create a new record and save SSVar1 in a field in that record. This works if table1 and tablex are in the same file. But the moment, the script goes to the new file, the SSVar1 is lost. I am using a physical global field to move the information from one file to another. I was wondering if it could be done using defined variables. Thanks for the help....
comment Posted April 5, 2009 Posted April 5, 2009 You could pass the value as script parameter to a script in the other file (perhaps even to the current script, I think?). Or you could create a "local" layout of the external table.
David Jondreau Posted April 5, 2009 Posted April 5, 2009 You can use the script step Exit Script[] to pass values that can be retrieved using the function Get(ScriptResult).
Gus Posted April 5, 2009 Author Posted April 5, 2009 Tried local layout.. worked fine. That seemed so obvious!! Thanks
comment Posted April 5, 2009 Posted April 5, 2009 I have just read this again, and I am confused: how does the script "go to the new file"?
IdealData Posted April 6, 2009 Posted April 6, 2009 (edited) I think it's just terminology. Over here (in the UK) we like to say "you must drive on the right side of the road" - of course we actually drive on the LEFT HAND SIDE. Of course we should say "correct side" ! Edited April 6, 2009 by Guest
comment Posted April 6, 2009 Posted April 6, 2009 Yes, I'm sure it's a terminology - I am just curious what does it actually mean. Of course we should say "correct side" ! No, I think you should say "wrong side".
Recommended Posts
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