I have to restrict end user to show catalog item in HR4U portal.

niveditakumari
Mega Sage

Hi, 

 

I have to restrict end user to show catalog item in HR4U portal. We are having Recommended for you widget in portal and in that it shows some catalog item and As an end user, User should not be able to see General Inquiry in the Recommended for You widget on HR4U portal. 

Can anyone please help me how to achieve that. 

 

Regards, 

Nivedita

 

 

23 REPLIES 23

@niveditakumari

 

I have earlier shared a snapshot with you where on line number 15 a value is assigned to data.results variable. Can you use a gs.info(data.results) on line number 16 and print the values in the logs and see if you get to see the sys_id of General Inquiry record producer in it. If yes, then you can simply choose to remove it from the results and it will no longer appear on the widget.

HI @Sandeep Rajput

 

Thank you for your reply. I want to here hide general inquiry under Recommended for you widget and it should be accessible everywhere on portal but not under Recommended for you widget. 

Can we achieve it with your solution. 

 

Regards, 

Nivedita

 

 

Yes, the solution suggested by me only works with Recommended for you widget and it will have no impact on the other areas.

Hi @Sandeep Rajput

 

I'll use gs.info(data.results) on line number 16 and how to print value in logs. 

I don't have much knowledge on portal. 

Can you please help me to print value in logs which is coming in data.results and as per my knowledge with using gs.info(data.results) it will print value in logs which we are getting in data.results. 

Please correct me if I'm wrong. 

 

Regards,

Nivedita

 

 

Yes, the values will be printed in logs, check if it prints the sys_id of the General Inquiry record producer. If yes, then you need to remove the sys_id from the array and assign the updated result to data.results.