How to populate 20 choices in a list collector variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2018 06:03 PM
I have an urgent requirement that I need to populate 20 choices in a list collector variable in a wizard. I cannot create a separate table in Client instance with these 20 choices only to make it as the list table.
I tried setting another muliple choice variable with these choices and use the query as a reference qualifier for the list collector from the Question choice table. But it is displaying the entire set of values from question choice table and not filtering the choiices. Can anyone please guide me with a solution as to how it can be achieved as I am not very good at scripting?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2018 10:47 PM
Hi muktha,
You need to write a client script to do that. You can refer the article by kalai (link provided below).
Regards,
Manan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2018 10:49 PM
Hi Muktha,
I think the problem might be in your reference qual condition.
try using a reference qualifier condition which filters the question choice based on the sys_id of the multiple choice variable that you have created.
You may refer the below sample which will help you to show question choices of a specific variable whose sys_id is mentioned in the Reference Qual condition.
Mark Correct if this solves your issue. Hit Like/Helpful based on the impact.
Regards,
Udhay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2018 04:08 AM
I tried this many times. Even though the sys_id is mentioned in the reference qualifier condition it is displaying the whole lot.
Requirement is in a wizard. Wizard variables are similar to service catalog variables as per docs. But I am not able to achieve it. Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2018 08:56 PM
This method works well but not for end users as only admins and catalog admins can read the question_choice table. Looks like there is a system process reading the question_choice table and passing the result back to the select_box formatter to get the choices