Is it possible to use dynamic javascript filter in a report for a catalog variable?

Arti Kumar
Tera Contributor

I want to use this report in a service portal trough a report widget. So The report should customize for the user logging in. I am able to use the javascript dynamic filter in a list and also as encoded query in a custom widget but not in a report.

ArtiKumar_0-1704403540931.png

 

5 REPLIES 5

Sainath N
Mega Sage
Mega Sage

@Arti Kumar : Can you dot-walk in your filter until the sys_id level, which gives you a free text field at the right? Currently looking into your screenshot, I see that on the right it's showing a drop-down. If this doesn't work can you give the exact filter condition you are using in the left filter as it sliced in the screenshot.

 

Example Filter: [Variables.Company.Sys ID] [is] [javascript:gs.getUser().getCompanyID()]

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution. 

Thanks for the reply.

Not able to get the free text option with this field. Here is the expanded form. I basically want the report to customize according to the customer logging into the service portal.

ArtiKumar_0-1704405301150.png

 

@Arti Kumar : "Requested For Subscriber" is what type of variable?

Reference type- core_company