Workflow Soluiton

 View Only
  • 1.  Grid Component

    Posted Jul 25, 2011 10:32 PM

    Hi,

     

    I'm trying to create a workflow to be able to add/remove computer(s) from multiple filters.

    I manged to get that to work targetting a single filter, but not when i'm selecting multple filters.

     

    Below is my problem

     

    1- Select a single filter from the GridComponent will be added into an array called v_selectedFilter (image1)

    2- I can target the GUID of that v_selectedFilter (image2)

    The above will work fine, the changes i'm applying is to allow multiple selection on the Grid

    but once i do that, my array will look like the following

     

    and i'll not be able to select GUID as there is a GUID under First and Last.

     

    Any idea how to work around this issue is appreciated.

     

    Thanks



  • 2.  RE: Grid Component

    Posted Jul 26, 2011 09:11 AM

    Use a For Each Element in Collection loop Below is an example of how it might look:

     

    Edit the 'For Each Item in Collection' component like the following:

     

    Downstream of the For Each component until it loops back in, you can use the "Item Output Variable Name" (current_selectedFilter in the example) as a single item. This will allow you to target the Guid's one at a time on a component to, for example, feed a Guid parameter to a Stored Procedure to remove that computer. See how the downstream data looks below: