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
04-17-2015 12:30 PM
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"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2015 12:42 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2015 12:45 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2015 08:02 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2015 07:19 AM
can we write reference qualifiers for macro