Using information in one Variable set to another variable set.

rafaelalves4337
Tera Contributor

Hello Folks,

 

I have a catalog form that has 2 variable sets, first variable set (Requested_for_details) and second variable set (computer details).

 

In my second variable set a have a reference variable called Computer_name, when the user select that variable, it must only show the computers assigned to the Requested_for user that was selected in the First Variable set (Requested_for_details).

 

I tried to do get it using reference qualifier javascript: "assigned_to=" + current.variables.requested_for

 

But it's not populating the computers, probably because it's in another variable set, can I do it using a client script? if yes, could you please give an exemple?

 

Thanks in advance.

1 ACCEPTED SOLUTION

@rafaelalves4337 

the link I shared has working solution

SOLVED: Issue with MRVS multi row variable set accessing the form values 

what configuration you did and what debugging did you perform?

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

View solution in original post

11 REPLIES 11

It did not work, it might be because it's 2 different Variable Sets in the same form.

Ankur Bawiskar
Tera Patron
Tera Patron

@rafaelalves4337 

Should not be an issue if both the variable sets as "Single line" and not MRVS

please share the details for both the variable sets, screenshots etc

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

First Variable set is a Single row, where the Requested_for variable is.

Second Variable set is a Multi Row, where the Computer_name variable is and should only show computers assigned to Requested_for from the first Variable Set.

@rafaelalves4337 

since the variable is present in MRVS, you cannot access it directly and hence not working

this link has solution on how to use outside variable to apply ref qualifier on variable within MRVS, please check and enhance
SOLVED: Issue with MRVS multi row variable set accessing the form values 

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

@rafaelalves4337 

Hope you are doing good.

Did my reply answer your question?

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