How to put reference qualifier in <g:ui_reference tag in UI macro?

Community Alums
Not applicable

I have a used one ui macro in a catalogue item. For one reference field i have used <g:ui_reference tag, how to put reference qualifer in <g tag?

 

Regards,

Sirraj

1 ACCEPTED SOLUTION

Community Alums
Not applicable

I have solved this issue by referring below thread,

 

https://community.servicenow.com/community?id=community_question&sys_id=78da0b6ddb5cdbc01dcaf3231f961998

 

- Sirraj

View solution in original post

14 REPLIES 14

Community Alums
Not applicable

Hi Ankur,

 

No this table i only have created. Its a UI macro only, where i have created a table creation dynamically. 

 

For var2, since its a reference field refering to another table i have used <g:ui_reference tag. Everything working as expected. Only need to apply reference qualifier or query condition to display only selected records on var 2.

 

-Sirraj

Hi Sirraj,

Ok I believe that won't work.

as I said in my previous comment you cannot set values from client side <script> tag to g:evaluate or g:ui_reference

Regards

Ankur

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

Community Alums
Not applicable

Thank you for the response and your valuable input Ankur. 

I'll check once again and will inform my mgr the same.

Thanks again , will mark your answer correct after one round of search. Have a nice day.

 

Regards,

Sirraj

Community Alums
Not applicable

I also referred the below link as well, but dont know how to set my query in var2. 

https://community.servicenow.com/community?id=community_question&sys_id=b4d8cb61db5cdbc01dcaf3231f9619eb

Community Alums
Not applicable

I have solved this issue by referring below thread,

 

https://community.servicenow.com/community?id=community_question&sys_id=78da0b6ddb5cdbc01dcaf3231f961998

 

- Sirraj