Newbies Phil Ershler Posted November 24, 2005 Newbies Posted November 24, 2005 Is there any way to use a script parameter to specify the target field of a script step? Thanks
Kent Searight Posted November 24, 2005 Posted November 24, 2005 Absolutely! Just make your script parameter a calculation based on whatever logic is required to determine the target field.
Newbies Phil Ershler Posted November 24, 2005 Author Newbies Posted November 24, 2005 In actuality the script parameter is the target field. Where I get stuck is that it seems all script steps require that target field is statically assigned when the script is put together. Thanks
Kent Searight Posted November 24, 2005 Posted November 24, 2005 (edited) In actuality the script parameter is the target field. Where I get stuck is that it seems all script steps require that target field is statically assigned when the script is put together. The target field can be dynamically assigned in a script but not a calculation. What is it exactly you'd like to accomplish? Do you have an example file? Edited November 24, 2005 by Guest Misread question, corrected my response
Søren Dyhr Posted November 24, 2005 Posted November 24, 2005 If it's getting the value is it the calc: GetField ( Quote ( Get ( ScriptParameter ) )) If it's getting the cursor into the correct field: Go to Field [ ] [ Select/perform ] Go to Next Field Loop Exit Loop If [ Get ( ActiveFieldName ) = Get ( ScriptParameter ) ] Go to Next Field End Loop Obviously requirering a layout containing the fieldname!!! --sd
Ender Posted November 25, 2005 Posted November 25, 2005 Or hardcode it: If [ get(scriptparameter) = "First Name" ] Set Field [ First Name ; ] Else If [ get(scriptparameter) = "Last Name" ] Set Field [ Last Name ; ] Else If [ get(scriptparameter) = "Address" ] Set Field [ Address ; ] ...
Recommended Posts
This topic is 6940 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