set reference qualifier through script for Lookup

sncrnd
Kilo Contributor

I am working on Eureka and looking help to set reference qualifier through script for Lookup Select box catalog variable. I have two variables:

  1. Application   - Select box
  2. Operation — Lookup select box

 

I put reference qual = "u_application_unit=" + current.variables.application for variable "Operation".

 

But this works only on load not on change of variable Application   variable. reference current.variables in the reference qualifier and have the field refresh when another variable changes

Can anyone help me how to do this.

 

Thanks

Chandan !

30 REPLIES 30

I'm trying to pull something similar off on a Catalog Item.   My problem is I'm passing in a g_form.getReference('fieldname') as a param.   I don't think the refqual likes that.   System logs keep complaining "Caused by error in <refname> at line -1"


Hey rfedoruk, I have done this in the past and I know it works... Is your code running in a script include as a function and being called by the reference qualifier?



Make sure the script include is "client callable" and I think it will work out. If it doesn ´t, let me know more details and I ´ll try to help you out.



Cheers!



Felipe


Hey Mr. Barbosa!   Its definitely client callable.   I know for a fact its not getting into the script-include.



Here's my ref-qual:


javascript:new u_CostCodeFunctions().u_serverRefQual(g_form.getReference('requested_for'))



My guts are telling me that the g_form.getReference('requested_for') is what's wrong.   requested_for is a variable that's on the catalog form.


I'd try a g_form.getValue('variables.requested_for')


Most of the fields are a variable and it should return the relevant sys_id


can we write reference qualifiers for macro