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-09-2024 01:00 AM
@Jaspal Singh
javascript:'location!=NULL^location='+current.variables.u_location
I applied this script on my device reference variable still not working the functionality.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2024 11:52 PM
Along with script also use : ref_qual_elements=u_location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 06:51 AM
I tried the below in my pdi its working please check,
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 02:33 AM
Hi @dhineshkumar ,
You can call below function in reference qualifier:-
javascript: new global.getLocationsSI().getLocations(current.variables.know_location);
SI-
var getLocationsSI = Class.create();
getLocationsSI.prototype = Object.extendsObject(AbstractAjaxProcessor, {
getLocations: function(know_location) {
var strQuery = '';
if (know_location == 'Yes' || know_location == '') {
strQuery = 'sys_idISNOTEMPTY';
} else {
strQuery = 'sys_idISEMPTY';
}
return strQuery;
},
type: 'getLocationsSI'
});
Please mark my answer helpful and accept as a solution if it helped 👍✔️
Kavita Bhojane