November 24, 200520 yr Newbies Is there any way to use a script parameter to specify the target field of a script step? Thanks
November 24, 200520 yr Absolutely! Just make your script parameter a calculation based on whatever logic is required to determine the target field.
November 24, 200520 yr Author Newbies 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
November 24, 200520 yr 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, 200520 yr by Guest Misread question, corrected my response
November 24, 200520 yr 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
November 25, 200520 yr 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 ; ] ...
Create an account or sign in to comment