Pass variable to script include from reference qualifier

robhaas
Tera Contributor

I have an advanced reference qualifier calling a script include and passing it current.

javascript:new global.COMP_UserHelpers().showInactive(current);

I am needing to pass a different variable to the script include. Is it possible to define and pass this variable in the reference qualifier? I tried the following two permutations in attempt to pass the variable tmpShowInactive with no luck. Any thoughts?

javascript:new global.COMP_UserHelpers().showInactive(var tmpShowInactive = {u_show_termed_users : true});

javascript:var tmpShowInactive = {u_show_termed_users : true} new global.COMP_UserHelpers().showInactive(tmpShowInactive);

TIA for assistance.

11 REPLIES 11

Can you provide some screenshots. It is not clear. What is the relationship between the current record and the old record?


Originally 'current' is an entry on the task table. I have a new table and am attempting to use the same reference qualifier. However, the new table does not have the field u_show_termed_users.   Perhaps it would be easier if I just add that field and hide it from the form instead of trying to get crazy with the reference qualifier.


We can do a glide record query in the script include for that. I just need the relationship between the current table and the table that has the field " u_show_termed_users"


robhaas
Tera Contributor

I modified the script include and made this work.


balaram
Mega Contributor

Hi Rober,



What changes you did on Script inlcude for this ?



Please give the details of Reference qualifier and scripti include. I have same requirement.



Thanks