how to retrieve a variable from the Variable Set with a script_include

andreaLuongo
Tera Expert

hello everyone
i have a problem, i have a catalog item with inside it a Variable Set named Requestor Details which in turn contains a Reference type variable called user_name.
always the item catalog has a variable of type List Collector called user_groups where in the Reference qualifier I execute the function 

 

javascript=functional_group();

 

which calls a Script_include functional_group().
the question is how do i get the contents of user_name?
i have tried directly with current.variables.user_name(), current.variables.user_name.getDisplayValue() and current.variables.user_name.getValue() but they don't work i think because first you have to specify that the variable is contained in the Variable Set Requestor Details.
i can't use the Catalog Client Scripts and i can't see the logs either.

thanks in advance

1 ACCEPTED SOLUTION

Sonam_Tiwari
Kilo Sage

@andreaLuongo ,

 

Have you tried current.variables.user_name, without brackets () after user_name?

Consider indicating the response as helpful and marking it as correct if it meets your needs.

View solution in original post

3 REPLIES 3

Sonam_Tiwari
Kilo Sage

@andreaLuongo ,

 

Have you tried current.variables.user_name, without brackets () after user_name?

Consider indicating the response as helpful and marking it as correct if it meets your needs.

thank you

andreaLuongo
Tera Expert

Yes, I confirm that it works in the correct way