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

Hi Sirraj,

Yes that's the main point here

passing values from <script> tag to the server side tag i.e. g:ui_reference of g:evaluate

Regards

Ankur

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

Community Alums
Not applicable

Hi Ankur,

 

Can you help me with some sample code.

 

Regards,

Sirraj

Hi Sirraj,

That is not possible i.e. sending values from <script> tag into g:evaluate or g:ui_reference

what I would suggest is to have normal variables only 

i.e. 1st variable string or drop down as per your choice

2nd variable a reference variable where you can apply the reference qualifier.

why you want to use UI macro and g:ui_reference tag? any specific reason

Regards

Ankur

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

Community Alums
Not applicable

Yes Ankur, Its a kind of table. For that i was advised to use ui macro. my catalog forms look like this.

So var 1 is a normal variable and var 2 is used in macro.

find_real_file.png

Hi Sirraj,

The second variable seems to be catalog table variable?

check below link:

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

Regards

Ankur

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