BOB: Business Objects Board
Not endorsed by or affiliated with SAP

Register | Login 

Want to sponsor BOB? 
Want to sponsor BOB? (Opens a new window)  

General Notice: Upcoming Events: PGHBOUG: Aug 23.

Using GetReportBlock


 
Search this topic... | Search Xcelsius - Crystal Dashboard Design... | Search Box
Register or Login to Post    Forum Index -> Other Products -> Xcelsius - Crystal Dashboard Design  Previous TopicPrint TopicNext Topic
Author Message
SteveD
Principal Member
Principal Member



Joined: 02 Nov 2009
ASUG Icon
Posts: 352
Location: Scarborough, North Yorkshire, UK


flag
PostPosted: Fri Jul 06, 2018 6:58 am 
Post subject: Using GetReportBlock

I've published a very simple report block from a Web Intelligence report as a web service. Block Name is 'ws_Category_Financials_Status_Unapproved', web service works fine and can be consumed by Xcelsius.

I'm actually now trying to bring information from the web service into a web page. According to the Webi SAP 4.1 documentation, it's a SOAP web service so I should be able to access it and tell it what I want out of it and what I want retrieved, I'm just a bit unsure as to how to use the GetReportBlock function to retrieve data out of the service.


My script code is currently:

Code:


<script>

function createCORSRequest(method, url){
        var xhr = new XMLHttpRequest();
        if ("withCredentials" in xhr){
         // XHR has 'withCredentials' property only if it supports CORS
         xhr.open(method, url, true);
        } else if (typeof XDomainRequest != "undefined"){ // if IE use XDR
         xhr = new XDomainRequest();
         xhr.open(method, url);
        } else {
         xhr = null;
        }
        return xhr;
      }

      var request = createCORSRequest( "get", "http://SERVERNAME&PORT/dswsbobje/qaawsservices/biws?WSDL=1&cuid=ATPhwm5EDYlNiblQwCBfw0E" );
      if ( request ){
        // Define a callback function
        request.onload = function (){"GetReportBlock_ws_Category_Financials_Status_Unapproved&login=AUSERNAME&password=APASSWORD&closeDocument=true&refresh=true&getFromLatestDocumentInstance=false"};
        // Send request
        request.send();
        alert.doug;
      }
      
</script>



So, here I'm trying to use CORS to avoid cross origin issues. I can access the web service in that I get it's XML structure back but I'm a bit clueless as to how to pass it parameters as described in the documentation in order to get data back out of it.



Any help or pointers in the direction of some online would be appreciated especially because this isn't really an Xcelsius issue, more web page scripting.

ty,

SD
Back to top
Display posts from previous:   
Register or Login to Post    Forum Index -> Other Products -> Xcelsius - Crystal Dashboard Design  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 5 Hours
 
Jump to:  

Index | About | FAQ | RAG | Privacy | Search |  Register |  Login 

Get community updates via Twitter:

Not endorsed by or affiliated with SAP
Powered by phpBB © phpBB Group
Generated in 0.0292 seconds using 17 queries. (SQL 0.0023 Parse 0.0008 Other 0.0260)
CCBot/2.0 (http://commoncrawl.org/faq/)
Hosted by ForumTopics.com | Terms of Service
phpBB Customizations by the phpBBDoctor.com
Shameless plug for MomentsOfLight.com Moments of Light Logo