2 Replies Latest reply on Feb 6, 2019 1:45 AM by Alexander Stern

    How to use Multi-Select dropdown in DWPC

    Alexander Stern
      Share This:

      Hi all,


      I'm wondering how to use the multi-select dropdown element for a DWPC Question.


      In the DWPC Service I have a question, where I want the user to select all of his Computer Systems from CMDB.

      I've created a multi-select dropdown menu, which is displaying the data fine, and now the user can select all of his Computer System. This is working fine.


      In the related Workflow i want now for example update all the selected Computer Systems in CMDB.


      When I map this multi-select response to an input variable in my workflow I can see that the input is like:


      {["computer1","computer2",... ]} when I select multiple items.

      If I select only one item the input is {["computer1"]}


      Now I tried to setup a multi instance loop, an thought that it will "split" this array to single values, and i can process this using any Remedy "step". For example to Get the RequestId from the request, i'd like to first run a "Get Entry by Query" using the query "'Name' = """+computername+"""" where computername is the "input data item" defined in the multi instance loop.


      But computername is always containing the complete array.


      Also I couldn't find any documentation about how to use this..


      Can someone tell me, what I'm missing to get this to work?






        • 1. Re: How to use Multi-Select dropdown in DWPC
          Gustav Ahlberg

          Hi Alex,


          Im doing the very same but didnt have time to look into the multi instance loop. Your process variable for the computer systems isnt of type "object" so i dont think you can loop it right away. Im using string functions and gateways to manually loop through the selection. I was thinking of using a "get entries" where i build the query based on the multi select answers and use that result (of type object) to loop. Doing so i still needed to use string functions to create the query so i went for the workaround of my own loop.


          I believe the answer for your question is that you need a variable of type object to be able to loop. That is a local variable so it isnt possible to map on your questionaire. What you get from your multiselect dropdown is just a json formatted string. You can use that to fetch an array of objects but you cant use it directly in your loop.




          • 2. Re: How to use Multi-Select dropdown in DWPC
            Alexander Stern

            Hi Gustav!


            thx for your answer!

            At the moment we have DWPC 18.02 installed, the string functions are not available in this version, and I can't create my own loop like you do.

            I also tried to map it to an object, but as you already said, this is not possible...


            I would like to know, what the developers idea was how we should use Multi-Select dropdowns in 18.02. I don't see a way to use this right now. (Of course I create a REST-API which will then return a Object that I could use for a multi-instance loop but I can't belief this is the way it should work ;-) )


            We are currently planning to upgrade to latest Version, but it will take sometime until we have this up and running in Prod environment...