Reference qualifier is not working for a list collector field in UI view for a catalog

D Sha
Tera Contributor

My requirement is that for a list collector field which is referring to task_sla table, depending on the task number(INC, PRB etc.) I select in another reference field I want only those SLA's to appear in the list collector field for the user to select that are are associated to that task number and whose 'has_breached = true and stage = breached'. 

So for the list collector I am using the following reference qualifier which works in portal :

 

javascript: 'task=' +current.variables.u_sla_exp + '^has_breached=true^stage=breached'

 

But in UI view of the catalog, list collector doesn't show any value automatically unless I click on 'run filter' then the values displays.

I want that depending on the task number selected I should see the list collector values. 

 

I tried creating the script include and then calling it from the reference qualifier but it didn't work.

Any help is appreciated!

 

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@D Sha 

did you add the variable attributes in the list collector

ref_qual_elements=u_sla_exp

share your variable configuration, ideally no extra config is required and it should work in both native + portal

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@D Sha 

did you add the variable attributes in the list collector

ref_qual_elements=u_sla_exp

share your variable configuration, ideally no extra config is required and it should work in both native + portal

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader