Populate list collector variable value based on users group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 11:43 PM
We have one Catalog Item where Model Names is a list collector variable, which gives the list of model name based on Manufacture, Category, SubCategory and Model type the user selected on the request form.
Earlier we have added req qual condition on the list collector variable to populate the list of models.
But now the requirement is, they have added a new field on the Model Names table, say "Workstation?". If the Workstation field is FALSE, then list collector will show all the models.
If the field is TRUE for one model, then system will check if the logged in user is a member on ABC group. If yes then only that particular Model will be visible on the list.
Ex - User A, trying to raise a request -
Selected, Model type = Hardware
Manufacturer = Sony
Category = Utilities
SubCategory = Sub-Utilities
Now depending on the above, there are 4 models listed on the table, 3 with Workstation FALSE and 1 with Workstation as TRUE
Now system will populate the 3 models as it is to the user, but for the 4th one, system will check if the user A is a member of ABC group or not. If yes, then that model will also populate on the list, else it will not populate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 12:44 AM
Hello @Ap_1
You can call script include as a advanced reference qualifier and you can pass the parameters as-
function_name(current.checkbox_variable,gs.getUserID());
Now in script include you can build your query by accessing the parameters.
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 09:24 PM
@Ankur Bawiskar I have read you blog on "Dynamically set list collector on change of variable" and tried to build my script as per the requirement.
But can you please help me how to add the list collector values on the available bucket instead of selecting on the Selected bucket.
I am getting the answers correctly from the Script include, but unable to put the same on the list collector.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 11:28 AM
Hi,
I have followed the above blog from Ankur and is able to select all the values on the right slush bucket.
But my requirement is the resulted values will be visible on the left slush bucket instead of moving those to right bucket.
Can anyone please help me on this.