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

Hi mguy ,



I have a similar issue with my ref qual not evaluating when the field value changes.


Can you expand on your suggestion of using updateChoiceList...() ? I'm not familiar with this function so presume it's a custom func that you have developed? If so I would really appreciate some details of what it does.


Also, where are you calling this function from?



Regards,


Ash


Hi Ashley, apologies for the delay responding, I have it in a client script to simply refresh the choice list options on a specific field, in this case the u_service field, I just use a line like this:



updateChoiceList_u_service() ;



and it will re-evaluate the applicable choices in that choice field.


Hi,



Thanks for getting back to me.


Is the updateChoiceList a function you have defined? I asked service now about it and they don't have any knowledge of an inbuilt function such as that.



Kind regards,


Ash


It should work on any instance, as I didn't write it, it seems to be an undocumented function. Quite handy if you have a choice list that has a reference qualifier and you need it to check the latest info on the form, rather than reload the whole form it just 'reloads' the choice list.


you can reference a field on the form as well



I have this as a reference qualifier on the Assigned_to field


it is determining the list of assignees based on the Assignment group and a few other criteria that the Script Include does



javascript:new GroupMLongReferenceQualifier().AssignedTo(current.assignment_group)