AnsweredAssumed Answered

Perform Script with a calculated script name?

Question asked by SteveFransen_1 on Nov 12, 2014
Latest reply on Nov 13, 2014 by philmodjunk


Perform Script with a calculated script name?


Using scripts, I need to get and set data from records in 22 tables whose fields contain data about different components of an eye exam. For example, the History table has one text field where the patient's history is entered. On the other hand, the VisualAcuity table has text fields for the right eye distance vision, left eye distance vision, right eye near vision, etc.



I have Get scripts to get the field data, and Set scripts to set the field data for a record in each table. For example, the GetVisualAcuity and SetVisualAcuity scripts Get and Set the data from the fields in the VisualAcuity table. 

I can set up a 22 branch If Else If conditional statement to call each Get or Set function but would rather have a single call to a calculated script name. I don't think I can do this with Perform Script. Is there a way to make this work?