This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to pass List as parameter to test script?

We've defined function:

Public Function COS_PersonWantsOrg_GetPermissions(ByVal UID_PersonOrdered As String, ByVal ListOfDisplayOrgParentOfParent As List(Of String)) As IEntity

How to pass ListOfDisplayOrgParentOfParent to test script? Below example return error.

Parents
  • Hi P.Noga,

    The script tester in Designer only really supports strings for the parameters.

    One way to do this would be to create a 'helper' script (you can add it at the top of your script) that takes strings as input and then converts the strings to a list and calls your actual script.

    So you might have a helper script that takes the second arg as a string in this form:

    val1|val2|val3|val4

    And then your helper script converts the pipe separated list into a 'list' object and calls the real script.

    HTH, Barry.
Reply
  • Hi P.Noga,

    The script tester in Designer only really supports strings for the parameters.

    One way to do this would be to create a 'helper' script (you can add it at the top of your script) that takes strings as input and then converts the strings to a list and calls your actual script.

    So you might have a helper script that takes the second arg as a string in this form:

    val1|val2|val3|val4

    And then your helper script converts the pipe separated list into a 'list' object and calls the real script.

    HTH, Barry.
Children
No Data