Need assistance on the Advance reference qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 11:03 PM - edited 05-09-2024 12:06 AM
when I selects the YES (do you know the location or not) location records should be show, if no all location records are empty. Based on the location its shows the device. Please help me with this task. Device reference table is alm_hardware. The table alm_hardware have the location field.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 11:50 PM
Hi @dhineshkumar ,
You can call below function in reference qualifier:
function getLocations(know_location) {
var strQuery = '';
if (know_location == 'Yes') {
strQuery = 'sys_idISNOTEMPTY';
} else {
strQuery = 'sys_idISEMPTY';
}
return strQuery;
}
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Kavita Bhojane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 12:25 AM
Based on location if you want device to be displayed, in device variable Try-
javascript:'location!=NULL^location='+current.variables.<locationvariablename>
If 'do you know the location or not' is Yes, then do you want all location to be shown ?
And If No, no records should display?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 12:31 AM
@prit123
Thanks for replay. How Can I applyt he script include here. When I select the any location, based on the location the device should be shown. How we can apply this.
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 12:47 AM
Hi Dinesh,
Looking at the use case there is no need to you to complicate and call a script include. Why not leverage oob functionality for limiting records on basis of selected value from dependant field.