Workflow and ServiceDesk Community

 View Only
Expand all | Collapse all

Perform Multiple Searches and Select Users for ListBuilder Component

  • 1.  Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 22, 2013 03:22 PM

    I watched the video on searching for AD users by last name and am able to implement that in my workflow.  I can also select multiple users from a single search result.  What I would like to do is select users from more that one search result.  I like the ListBuilder as it allows me to Add or Remove users within a list, however, I'm not sure how to perform individual searches and then add the selected user from the result into the ListBuilder?  I also thought it would be nice to be able to perform a search within the ListBuilder and click Add for the user found, but am not sure if that is possible.

    I was able to select a user within the search on one form and then have it populate the ListBuilder on a second form.  I then tried to go Back to do a new search and got an error about it being an array element.

    Any ides would be appreciated!

    Thank you,

    Cindy



  • 2.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 24, 2013 04:26 PM

    I'm honestly not sure I'm following the situation here. Could you post your workflow or some pseudo-code to help me understand the situation and desired result a bit better?



  • 3.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 24, 2013 11:05 PM
    I'm honestly not sure I'm following the situation here. Could you post your workflow or some pseudo-code to help me understand the situation and desired result a bit better?


  • 4.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 24, 2013 11:09 PM
    I was able to select a user within the search on one form and then have it populate the ListBuilder on a second form.  I then tried to go Back to do a new search and got an error about it being an


  • 5.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 25, 2013 09:16 AM
      |   view attached

    My goal is to have users submit a request to add a new AD group and include the members they would like added to the group.  I am focusing on the members portion of the request and would like them to be able to search for a user, display the user's name, department and title so that the requestor is certain they are selecting the correct user.  Since there will be more than one user selected, present a listing of everyone that has been selected along with the ability to remove someone if they should not be included.

    I thought the Listbuilder would be a good way to go except I wasn't crazy about the Add button since I want the requestor to use a search to add a member to the list.  I put together the attached workflow which uses a grid and a remove button.  The only thing I would like to do now is not have so many screens.  If I could get the department and title to display on the same screen as the search, then I think that should be all I need.

    I am new and this is my first attachment so let me know if it isn't in the right format.

    Thank you for your help!

    Attachment(s)

    zip
    ADGroupMembers.zip   2 KB 1 version


  • 6.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 25, 2013 10:36 AM

    That attachment doesn't appear to be complete. Can you zip up the whole project directory for me? Alternately, you can remove sensitive info (AD passwords and what-not) and publish to a zip folder from the publish menu option.



  • 7.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 25, 2013 10:43 AM
      |   view attached

    I used the Publish Project icon and selected Create Publishing Zip File.

    Attachment(s)

    zip
    ADGroupMembers_0.zip   129 KB 1 version


  • 8.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 25, 2013 10:55 AM
      |   view attached

    I wasn't able to open the original attachment due to my being an older version. Essentially what I've done before is list box components and used two output paths to server as my add and remove buttons. You will want to initialize an array for your new list of selected users before you get to your form. You will then point your second list box input to the array you initialized to begin the project. Then on your search form your selected item will follow the add path to the "add item to collection" component to get the user added to your initial array new list array. Route that component back up to your form and you will see in your 2nd listbox the selected user added. I've attached the concept just using the text data type. Let me know if you have any issues.

     

     

    Attachment(s)

    package
    test3.package   145 KB 1 version


  • 9.  RE: Perform Multiple Searches and Select Users for ListBuilder Component
    Best Answer

    Posted Feb 25, 2013 11:20 AM

    Agreed. The problem here stems from using 3 form builder components when 1 will do. I didn't actually fill everything in, but these screenshots show what I mean. A similar approach to b3tts32, but a little different maybe and still using the remove grid item button.

     

    And for the form builder itself:



  • 10.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 25, 2013 04:43 PM

    Thank you so much for the suggestions.  I really like the look of the test3 package, but am not sure how I would perform a search in order to add items in the right hand column.  It seems like this is better suited for a pre-populated list.

    I was able to get the search and grid all on the same page which is exactly what I was looking for.



  • 11.  RE: Perform Multiple Searches and Select Users for ListBuilder Component

    Posted Feb 26, 2013 12:52 PM
      |   view attached

    Yeah there are just a few differences but here's a reference with the AD stuff tied in. You'll have to update the project properties.

    Attachment(s)

    package
    test3_0.package   167 KB 1 version