How can I make reference fields to list collector type of field where these fields are dependent on

Priya Singh 2 2
Tera Contributor

Hello Team,

I have an existing Catalog Item which is having a variable set added to it & it opens a new form within this catalog item:

1.Test1 (Reference Field)

2.Test 2 (Reference Field)

3.Test 3 (Reference Field)

4.Test 4 (Reference Field)

5.Test 5 (Reference Field)

 

When I choose Test1, Test 2 choices shows further Test 3, Test 4, Test 5, (For this we have a custom table created where this mapping is happening my requirement is that when I choose Test 1, I should be able to choose all the choices of Test2 & Test3 Test4 Test 5 as I can only choose only 1 value as of now. 

If I talk about custom table mapping I can see each field has 1 entry, if a choice is having more than 1 value then there are more than 1 entry onto that table.

 

Please advise how we can achieve this requirement or best way to do this ?

 

Thanks,

XXXXX

 

 

1 REPLY 1

Brad Bowman
Mega Patron

I don't know if I'm exactly following / understanding correctly, but if you want to select more than one value, use the variable type of List Collector instead of Reference.  List Collector variables can use a table and Reference qualifier, just like Reference type variables.  To ensure the list of records which satisfy the qualifier are refreshed in your scenario after Test1 has been selected, include in the Variable Attributes something like this:

BradBowman_0-1750699837327.png

where 'v_test1' is the name of the Test1 variable.  The no_filter and glide_list attributes are optional, and only affect the appearance of the variable in the native / Service Catalog view, not Portal/ESC...  Using no_filter hides the filter section from above the Available and Selected boxes.  The glide_list attribute makes the variable appear similar to List fields, and List Collector variables in the Portal with a lock icon and a reference search window instead of the Available and Selected windows.