record produce data hide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 01:25 AM
I have referenced a table A in the record producer list collector. The contents of table A are displayed on the record producer portal screen. Now the requirement is that a certain record of table A should not be displayed on the portal screen. This function can be achieved without deleting the data of Atable.
Atable
record produce
portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 01:53 AM
Hi @kack l
you can try the below code removed option.
g_form.removeOption("backend name of variable",'backend name of the option you want to remove');
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 01:57 AM
Thanks for your answer. Can I write js code to implement the method in Reference qualifier?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 02:05 AM - edited 05-17-2024 02:07 AM
Hi @kack l ,
I'm not sure you can write JS code for this. But ServiceNow gave some OOB functionality called 'Reference Qualifier' to achieve your requirement. You just need to create a query to filter out your records that you don't want to show in the list.
Something like below,
javascript:'u_active=true'
This will show you only the active records in that table.
Regards,
Dhanraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 02:12 AM
HI @kack l
you can use the below code in the Reference qualifier
javascript;'name='A' '
Thanks
dgarad