set reference qualifier through script for Lookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2014 05:34 AM
I am working on Eureka and looking help to set reference qualifier through script for Lookup Select box catalog variable. I have two variables:
- Application - Select box
- 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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2014 08:49 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2015 04:13 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2015 04:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 01:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 03:00 AM
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)