Override Reference Qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2015 12:51 PM
Hi-
Background: On my Incident table I have a Reference Qualifier that auto populates the assignment group based on the CI selected. Before I made changes the default assignment group value could be overwritten and changed to a different assignment group.
I changed the Reference Qualifier to Advance with javascript: 'parent=' + current.cmdb_ci.support_group so that nowitnot only defaults the assignment group based on the CI, the lookup reference filters will only show me the children of this group so that I can refine my group (to a location based group).
What I need:
A - Need to ability to default the assignment group so that the lookup only shows thechildrengroups for the given CI - but also be able to still override the default CI with a different CI (and if that new CI has children change the lookup to show the "new" children).
B - HIDE theorginial default assignment group (use it to populate the childlookupif there are any) but need the user to SELECT an assignment group (if there are child groups) and not just go with the default assignment group.
I don't know how to write ascripto do any of this (or where you put it)....anyassistance will be greatly appreciated.
April
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2015 06:19 AM
Hi April,
if still relevant...In the Reference qual field of the Dictionary Entry (see your screenshot above); you need to add () behind your code:
javascript:u_INC_FilterAssignmentOnDisableTrigger()
You always need to call up a function with () at the back
Kind regards,
Stijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2015 05:13 AM
Hi Berny, How do I make it work on a Mobile Interface? Thank you in advance! Berny Alvarado
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2015 06:01 AM
Hi Apple, the last that I recall advanced reference qualifiers do not work in the Mobile. here goes another thread stating the same: Reference qualifier support in the new mobile UI?. I'm not totally sure if this have changed in more recent versions like Fuji or Geneva.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2015 12:50 AM
Hi April,
I think you need to remove "{" from "initialize: function() {" of the script.
Please give it a try and let me know the next steps.
Shahid