Generate a report using a JavaScript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 03:58 PM
Hi,
Can we create a report in ServiceNow using a JavaScript.?
I used to do a similar task by creating an intermediate table. JavaScript populates the table and build a report to extract data.
Can we get rid of the middleman which is creating the table?
Thanks, Donald Jayawardena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 07:06 PM
It depends on where is the report be shown.
If in a portal widget, or ui page of course you can ,just collect the data for the report and set the data to the graph,
you don't need a intermediate table.
if in a normal form, i have no idea about this....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 07:48 PM
Thanks Newhand
I want to build a list view report.
Hope there is no way we can build the report without first writing the data to a table.
Regards,
Donald Jayawardena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 08:59 PM
In fact , am doing the similer thing as you are doing ....
The default report function is very weak, can just make some simple reports.
But the portal widgets can do everything ...
So i created a portal widget and put it into my dashboard..
The below link shows how to put portal widget into the dashboard。
You can read this if you need.
https://www.servicenow.com/community/developer-articles/add-portal-widget-to-dashboard/ta-p/2330147
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 08:18 PM
Can you give an example of a report you're trying to create?
It's a little hard for me to understand what you're trying to accomplish and why you couldn't just use the reporting or PA module.