Skip to Content
Author's profile photo Former Member

Using Restful API to Write Macros to Your WEBI Report

Hi All,

these are just toughts about using the Restful API to write macros to a WEBI Report.

I think that , as mentioned by      Anthony MULLER in Calling Restful API from a WEBI Doc , the great challenge of self scripting a WEBI document ( by self scripting I mean auto modifying the document by inserting javascript code to make calls to the Restful API) is that open a document and making Restful calls to the API uses different  memory spaces.

I think that we can accomplish that following the below steps :

1 – Get a logon token;

2 – Open the document through OpenDocument, passing the token as a parameter ( have a look at How to pass a parameter to a WEBI doc 

3 – Save the document (have a look at How to autosave a Document over itself each n seconds );

4 – Make your Restful calls and save the document through a Restful call );

5 – Reload the Document ( through a refresh, have a look at How to set a WEBI document to autorefresh each n seconds ),

I would like to discuss these options with anyone interested on it.



Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.