Forum Discussion

seburn's avatar
seburn
New Contributor III
2 years ago

Re: passing multiselect combo-box as parameter

Hi. 

You can split the string in the receiving business rule by delimiter e g comma

Dim split as String() = args.NameValuePairs.XFGetValue("ParamCC").Split(",")

Then loop through rresults to get each selection e.g

For Each param As string in split

     ' Do Something 

Next

 

6 Replies

  • Rev's avatar
    Rev
    New Contributor II

    Thanks Seburn.I tried the suggestions provided and it works partially.Means when list of members were passed in ParamCC, it works only for the first parameter.

    Dim split as String() = args.customcalculateargs.NameValuePairs.XFGetValue("ParamCC").Split(",")

    For Each param As string in split

          api.logmessage(param ) ( Im able to print each param)

         ' Do Something (but it works only for first parameter passed)

    Next

    • seburn's avatar
      seburn
      New Contributor III

      OK. I think you need to check you are passing in the param value via button AND DM step with square brackets around the parameter (see above). This behavior sounds like you are only picking up the first comma separated value  square brackets should fix 🙂

       

      E.g button

      seq_name}{ParamCC=[|!ParamA!|]}

      E.g DM step

      ParamCC=[|!ParamA!|]

      • seburn's avatar
        seburn
        New Contributor III

        E.g button

        {seq_name}{ParamCC=[|!ParamA!|]}

        E.g DM step

        ParamCC=[|!ParamA!|]