1 Reply Latest reply on Apr 17, 2011 5:15 PM by LaRetta_1

    script name in a global text field

    johnsandiego

      Title

      script name in a global text field

      Post

       Is it possible to execute a "perform script" when the name of the script to be executed is stored in a global text field?

        • 1. Re: script name in a global text field
          LaRetta_1

          It is possible in a round-about way but there is no Perform Script By Name [ by calculation ] unfortunately.

          You would need to create a hard-code If/Else construct such as:

          If [ table::global = "Script 1" ]
          Perform Script [ Script 1 ]
          Else If [ table::global = "Script 2" ]
          Perform Script [ Script 2 ]
          Else If ...
          ...
          End If

          Also note that hard-coding these script names will mean that you will break your scripts if you rename them and don't correct the text with the quotes to match.