Adding Export to Excel Button on Report

jeremyeperdue
Giga Expert

We are trying to add an Export to Excel button next to Export to PDF.

Export to Excel button.png

 

Are these buttons "editable"?

1 ACCEPTED SOLUTION

jeremyeperdue
Giga Expert

We decided to add the UI Action to the Configuration item list.



1.PNG



Step 1


Ascertained the OTB code for Export to Excel.


2.PNG


Step 2


Created a new UI Action and applied it to the cmdb_ci table so the Export UI Action appears on every list screen for CIs.




3.png


and pointed the onClick to the "scoped" function we added.




It would be nice for OTB to come with the Export options at the top, but in this case, being able to export from the CI itself will save the time of drilling into a separate report.








View solution in original post

5 REPLIES 5

Hi Jereme,

 

I have a similar requirement to make a UI action to export Affected CI's for incident. I have added the same code but instead of getting the related CI's the export is exporting all the CI's listed. 

 

How can this issue be fixed? Please guide me. 

 

Thanks,

pK