Angular JS Server Calls

tahnalos
Kilo Sage

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

3 REPLIES 3

Ashutosh Munot1
Kilo Patron
Kilo Patron

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

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.

Simon99
Giga Contributor

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.