Angular JS Server Calls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 01:03 PM
I'm relatively new to Angular JS. We are trying to have Angular JS run a custom report, and therefore we need Angular to make a server call to obtain the data, before processing said data to display in the report. Is there anything in the Angular Documentation that can show us how we could make a call in a Script Include to obtain this data?
Pseudocode is as follows:
1) Make a call to the server based on certain parameters for this report. Pass the report parameters into a script include (maybe a GlideAjax will be required here?)
2) When the call is finished, the output for this report should be in a particular format to be processed by the Angular script. We're thinking of setting it up as a JSON object so we can build it from the server side using the Script include so that the Angular can process the formatting from the client side.
Has anyone done this and can provide a few snippets on how this can be accomplished?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 01:20 PM
Why dont you use OOB Report widget and show report in that?
You can create scripted report in backend and call that in this widget.
Thank You,
Ashutoshg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 06:07 PM
This report is going to be called from a custom application. It cannot be a widget, and the specifications of the custom application require it to be in Angular JS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2022 01:53 AM
I don't get your issue but what I know here I share with you is that In angular js development, you have to create a report in the backend where you call that widget.