The CreatorCon Call for Content is officially open! Get started here.

Correct this reference qulifier please

Deepthi13
Tera Expert

Hi team, 

 

this reference qualifier is not working properly. please correct this,

^current.variables.role_add_users!='; after keeping this condition it is not working. This is kept because I dont want to show the values in drop down(list collector) when the role_add_users is empty. when it is filled then only related records should appear in the list collector.Please suggest

var queryString = 'u_catalog_item=1cf335b61b143d106bf5535b234bcb1f^u_active=true^u_parent_variable=' + current.variables.role_add_users.toString() + '^u_application_name=' + current.variables.region.toString() + '^current.variables.role_add_users!=';

8 REPLIES 8

Riya Verma
Kilo Sage

Hi @Deepthi13 ,

 

Hope you are doing great.

 

Try using below script in reference qualifier :

var roleAddUsers = current.variables.role_add_users.toString();

var queryString = 'u_catalog_item=1cf335b61b143d106bf5535b234bcb1f^u_active=true^u_parent_variable=' + roleAddUsers + '^u_application_name=' + current.variables.region.toString();

if (roleAddUsers) {
    queryString += '^current.variables.role_add_users!=';
}
 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Hi Riya,

Thanks for reply i tried this and it is not working as expected

Anand Kumar P
Giga Patron

Hi @Deepthi13 ,
var queryString = 'u_catalog_item=1cf335b61b143d106bf5535b234bcb1f^u_active=true^u_parent_variable=' + current.variables.role_add_users.toString() + '^u_application_name=' + current.variables.region.toString();

 

if (current.variables.role_add_users) {
queryString += '^current.variables.role_add_users!=';
}

 

Thanks,

Anand

Hi Anand,

 

Thanks for reply i tried this and it is not working as expected