record produce data hide

kack l
Tera Expert

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

b.png

record produce

kackl_0-1715934255776.png

portal

B1.png

5 REPLIES 5

dgarad
Giga Sage

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');
If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad

Thanks for your answer. Can I write js code to implement the method in Reference qualifier?

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.

HI @kack l 

 you can use the below code in the Reference qualifier

javascript;'name='A' '
If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad