Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How it's possible to remove click on report ?

Maxime Noah
Tera Contributor

Hello !

I'm using the widget report on my service portal.

I can display report but i want remove/disable the click on the report to avoid to display record. Just like a simple report/graph. I'm searching the solution since a moment but doesn't find a solution...

The report before the click :

find_real_file.png

 

The record display after the click :

 

find_real_file.png

Can you help me ?

 

Thx in advance !

1 ACCEPTED SOLUTION

Hi @Maxime Noah ,

 

You can fetch the current user's role in the server script and store it in a variable that can be used in the HTML body to conditionally render the main report widget. Add a "class" in each of the div holding the report and then apply CSS based on that class.

In server sidde code, you can try using below code:

data.result = false;

if (gs.hasRole("itil")){ 

data.result= true;

}

then use it in HTML script like:

<div ng-if=data.result class="itilReports"> //Here you can add a class in the div and then apply the CSS on this class to enable pointer event

<!-- Try adding the report widget main content here -->

</div>

<div ng-if=!data.result class="otherReport"> //Here you can add a class in the div and then apply the CSS on this class to disable pointer event

<!-- Try adding the report widget  main content here -->

</div>

 

Please mark my answer as helpful or correct if it helped you in any way.

Thanks & Regards,

Aishwarya

View solution in original post

6 REPLIES 6

Hi !

Sorry for the late answer.

I tested your solution today.

All work great ! Thx a lot !

thejaswini Gopi
Kilo Explorer

Hi @Maxime Noah ,

I am looking for same solution.

but one query, for me report widget is redirecting to navigation page instead portal how you getting list view.

Did you configure the report widget?

If Yes, please share the input.

Thanks in advance!!