Webi Document Scheduling through RESTful

I've been trying to Schedule a Webi Document using RESTful through Python, I found useful blogs in this forum,
So far I managed to pass a predefined set of parameter, but I'm trying to get the webi report Prompts at run time and ask for the user to enter the prompts and then pass those to the report and execute it.
I was able to isolate the prompts from the Parameters but need some assistance in doing it more efficiently...
Thanks for the help..
Regards, Anbu

Hello Daniel,
Here's the code through which I'm getting the Prompts, looping through the result set
response = json.loads(result_pram_out.read().decode('utf-8'))
res_loop = response['parameters']['parameter']
for key_pair in res_loop:
    for attribute, value in key_pair.items():
        if attribute == 'name':
When I meant efficient this is what I mean by that
Thanks for the lovInfo=false parameters, I'm currently using without that, let me include it and see how does it affect the result set.

Similar Messages

  • Report data ( value ... tag) missing in the Webi report retrieved through RestFul Webservice

    I am trying the below URL to get the WEBi report from SAP BO using the Rest Webservice support that is now available.
    http://{serverIP:serverPort}/biprws/raylight/v1/documents/{documentId}
    I am able to get the report but as I compare the same report response when using SAOP Webservice, there seems to be a mismatch in the response. Here is what I see in the SOAP response:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" sid="-10"><ct >Some arbitrary value</ct><value type="xs:string">Some arbitrary value</value></cell>
    But when I run it through REST, I am missing the <value ..> tag:
    </td><td c="1" ><cell  ref="1.E.4t" bid="14" h="26" w="231" pad="6,7" bt="1" sid="-10"><ct >Some arbitrary value</ct></cell>
    Apart from this right at the start of the xml response, I see some property mismatch as well.
    SOAP has this property extra:
    <property name="output.format.xml.valuemode">yes</property>
    While REST has these property extra:
    <property name="output.format.xml.option.style">1</property>
    <property name="output.format.xml.styledict.fontplatform">html</property>
    <property name="output.format.xml.td.bandinfo">yes</property>
    <property name="source.selected">data</property>
    <property name="xelement.xml.object">yes</property>
    <property name="xelement.xml.object.usemap">yes</property>
    <property name="xelement.xml.object.usersupportedformat">image/png</property>
    I am not sure if:
    the <value ...> tag miss is because of these missing/extra properties or
    current REST support has some issues
    For my application the value tag is a must and I can't do without this, but with REST it seems no way to obtain that.
    Any help or pointer(s) in this regard is appreciated!

    Hello Milind,
    According to our Product Owner Sam Polichouk, the solution should be available for you in 4.1 SP3, which is currently scheduled for release by the end of March 2014 (subject to change).  The product team recommends that you get the raw, unformatted data values from within the Dataset specific call.  This data contains a type to tell the end user what kind of data it is, so you can format it or use it properly.
    The updated documentation for the SDK will be available at SAP BusinessObjects Business Intelligence platform 4.1 – SAP Help Portal Page once the Support Pack is publicly released.

  • How to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.

    Hi,
    I am trying to update the Query of an existing WEBI document's dataprovider, through the RESTful Web service SDK.
    For this, first i will get the Dataprovider information,
    Example:
    URI: http://localhost:6405/biprws/raylight/v1/documents/11111/dataproviders/DP0
    Expected result;
    <dataprovider>
         <id>DP0</id>
         <name>Query 1</name>
         <dataSourceId>1234</dataSourceId>
         <updated>2014-04-18T11:55:21.000-08:00</updated>
         <duration>1</duration>
         <isPartial>false</isPartial>
         <rowCount>113</rowCount>
         <flowCount>11</flowCount>
         <dictionary>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO1</id>
                    <name>EmpID</name>
                   <description>Employee ID.</description>
                    <dataSourceObjectId>DS0.DO1</dataSourceObjectId>
              </expression>
              <expression qualification="Dimension" dataType="String">
                   <id>DP0.DO2</id>
                   <name>EmpName</name>
                   <description>Employee Name.</description>
                   <dataSourceObjectId>DS0.DO2</dataSourceObjectId>
              </expression>
         </dictionary>
         <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee</query>
    </dataprovider>
    Then Changing the above dataprovider's Query to some thing like below,
    <query>SELECT Employee.EmpID, Employee.EmpName FROM Employee where Upper(Employee.EmpName)='RAJ'</query>
    Please let me know the RESTful Call required to do this.
    Thanks in advance.
    Thanks,
    Mahendra.

    FYI, the output of this call returns something like:
    <?xml version="1.0" encoding="UTF-8"?> 
    <queryplan>
        <union>
            <fullOuterJoin>
                <statement index="1">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="2">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.nb_guests) FROM SALES, INVOICE_LINE, SERVICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) AND ( SERVICE.SL_ID=SERVICE_LINE.SL_ID ) AND ( SERVICE_LINE.service_line = 'Accommodation' ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
            <fullOuterJoin>
                <statement index="3">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), count( distinct SALES.inv_id) FROM SALES GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
                <statement index="4">SELECT 'FY' || to_char(SALES.invoice_date,'yy'), sum(INVOICE_LINE.days * INVOICE_LINE.nb_guests * SERVICE.price) FROM SALES, INVOICE_LINE, SERVICE WHERE ( SALES.INV_ID=INVOICE_LINE.INV_ID ) AND ( INVOICE_LINE.SERVICE_ID=SERVICE.SERVICE_ID ) GROUP BY 'FY' || to_char(SALES.invoice_date,'yy')</statement>
            </fullOuterJoin>
        </union>
    </queryplan>

  • How to schedule Webi Documents with Prompts with RESTful Web Services

    Hello,
    I am trying to schedule Webi Documents with Prompts using RESTful Web Services with prompts. I am using Simple Rest Client app provided by Google Chrome. We have Business Objects SP6 Patch 1.
    However the documentation for RESTful Web Services has only examples for the following
    1. Schedule Documents without any Prompts to various destinations and recurrences.
    2. Refresh Documents with Prompts.
    Is there any example for scheduling documents with prompts? Please advise
    Thanks in advance

    Hi Peter,
    With Rest Client, on BI4.0 SP6, you can schedule Webi documents with prompts using the following:
    URL: http://<servername>:6405/biprws/raylight/v1/documents/<docid>/schedules
    Method:POST
    Request Body:
    <schedule>
    <name>Enter values for City:</name>
    <format type="webi"/>
    <destination>
    <inbox/>
    </destination>
    <once retriesAllowed="2" retryIntervalInSeconds="60">
    <startdate>2013-08-26T15:58:51.000+02:00</startdate>
    <enddate>2013-08-27T15:58:51.000+02:00</enddate>
    </once>
    <parameters>
    <parameter optional="false" type="prompt" dpId="DP0">
    <id>0</id>
    <technicalName>Enter values for City:</technicalName>
    <answer constrained="false" type="Text">
    <values>
    <value>Austin</value>
    </values>
    </answer>
    </parameter>
    </parameters>
    </schedule>
    Using the above request you can schedule the Webi document with prompts to inbox destination  and set for once.
    The schedule can be sent in different formats to several destinations and set just for once, daily,
    hourly or monthly.
    You can also check the example for this on page 275 of SAP Webi RESTful SDK user guide for BI4.0 SP6 below:
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp6_webi_restful_ws_en.pdf
    Regards,
    Swati
    Message was edited by: Swati Ikhe

  • Error while scheduling through web service

    We have created Web service through WSDL of OBI Publisher. Also we created a web service proxy client to call the services offered by OBI Publisher. We actually want to  "Automate the Scheduling of Reports" according to our requirement:
    1. We used to schedule the reports manually by giving the parameters(used to populate data in reports) and other fields like select report name, report destination, format of reports ( .pdf, .docx,etc) through Oracle BI Publisher.
    2. As there are thousands of permutations of report input parameters possible, so it is difficult to schedule them manually. 
    3.We also want to schedule report to a particular folder according to some parameter, for the ease of the user visibility.
    Above requirements are not currently available with Oracle BI Publisher.
    We are getting error while scheduling through ScheduleRequest class.
    The client.java is as follows:
    public class ScheduleServiceClient
      @WebServiceRef
      private static ScheduleService_Service scheduleService_Service;
      public static void main(String [] args)
        scheduleService_Service = new ScheduleService_Service();
        ScheduleService scheduleService = scheduleService_Service.getScheduleService();
        // Add your code to call the desired methods.
        try {      
                    FTPDeliveryOption ftpdo =new FTPDeliveryOption();
                    ftpdo.setFtpServerName("ServerName");
                    ftpdo.setFtpUserName("Username");
                    ftpdo.setFtpUserPassword("Password");
                    ftpdo.setRemoteFile("/path/TestFile");
                    ftpdo.setSftpOption(true);
                    List<FTPDeliveryOption> listobj=new ArrayList<FTPDeliveryOption>();
                    listobj.add(ftpdo);
                    ArrayOfFTPDeliveryOption ar =new ArrayOfFTPDeliveryOption(); 
                    ar.setItem(listobj);
                    DeliveryChannels dc = new DeliveryChannels();
                    dc.setFtpOptions(ar);
                    ScheduleRequest scheduleRequest = new ScheduleRequest();
                    scheduleRequest.setDeliveryChannels(dc);
                    scheduleRequest.setJobLocale("en-US");
                    scheduleRequest.setUserJobName("Job_1_WebService"); 
                    scheduleRequest.setDataModelUrl("Url");
                    scheduleRequest.setStartDate("Mar 27, 2015 12:40:00 PM");
                    scheduleRequest.setJobTZ("[GMT+05:30] Calcutta, Chennai, Mumbai, New Delhi");
                    String userID = "BI_Publisher_Username";
                    String password = "BI_Publisher_Password";
                    scheduleService.scheduleReport(scheduleRequest,userID,password);
                } catch(Exception exception) {
                    exception.printStackTrace();
    Snapshot of error is attached.
    Kindly suggest the way of getting out of this error.

    Hi
    Check this thread
    WD Message Manager
    Reward opints if usefull....

  • Encypting Pdf document sent through email from BO WEBI

    Hi,
    Encypting Pdf document sent through email from BO WEBI . Is there any sdk scripts/3rd part tools to do this.
    Thanks
    Ranjith

    Hello Ranjith,
    There is no native functionality for encrypting a PDF document from within BusinessObjects Enterprise. Additionally, none of the BOE SDKs are able to encrypt a PDF document either. Generally speaking, if it is not possible in the product (BOE) it's not possible with the various SDKs.
    I am not aware of any third party tools that can do this from inside BOE either. If you haven't done so already you may want to post a question to the [Business Objects Board|http://www.forumtopics.com/busobj/index.php?sid=1037068e7b26619422be6a7b18a8c2ee] (BOB) to see if anyone there has a suggestion.
    Sincerely,
    Dan Kelleher

  • Schedule webi document to printer and save the output in shared drive

    Hi all,
    Is it possible to schedule a webi document via java BOE SDK, run at once, save the output in pdf format in a shared drive and at the same time, send the output to printer? Or I need to run the webi document to run 2 times? Thanks.
    Best regards,
    Grace

    Hi Adam,
    How about can I schedule a webi document to printer only? In Crystal report, I can do this but seems for webi, no such function?
    Best regards,
    Grace

  • Auditing for scheduling WebI documents

    We'd like to audit the scheduling of WebI documents.  Which auditing option do we enable so that we can tell when a scheduled document was successful?
    We're using XI 3.1.
    Thanks,
       Laura

    Hi Ashwini,
    That's what I thought, but we tried it and it's not working.  That is, after we enabled auditing "Scheduling Succeeded," I scheduled a job.  The audit data showed an action of "Document Refreshed" but not "Scheduling Succeeded."
    Anybody have an ideas about why it's not working?
    Thanks,
       Laura

  • Can we redistribute SAP document materials through the web?

    Hi all,
    Is it legal to redistribute SAP document materials through the web?
    Thanks!

    Hi Christian,
    Thanks for replying. Just curious on this thing though, I have few SAP documents in .pdf format stating the following: (Can someone clarfy and help me about this? Thanks!)
    <b>Terms for Included Open Source Software</b>
    This SAP software contains also the third party open source software products listed below. Please note that for these third party products the following special terms and conditions shall apply.
    SAP License Agreement for STLport
    SAP License Agreement for STLport
    between
    SAP Aktiengesellschaft
    Systems, Applications, Products in Data Processing
    Neurottstrasse 16
    69190 Walldorf
    Germany
    ( hereinafter: SAP )
    and
    you
    ( hereinafter: Customer )
    1. Subject Matter of the Agreement
    a. SAP grants Customer a non-exclusive, non-transferable, royalty-free license to use the STLport.org C++ library (STLport) and its documentation without fee.
    b. By downloading, using, or copying STLport or any portion thereof Customer agrees to abide by the intellectual property laws, and to all of the terms and conditions of this Agreement.
    <b>c. The Customer may distribute binaries compiled with STLport (whether original or modified) without any royalties or restrictions.</b>
    d. Customer shall maintain the following copyright and permission notices on STLport sources and its documentation unchanged: Copyright 2001 SAP AG
    e. The Customer may distribute original or modified STLport sources, provided that:
    • The conditions indicated in the above permission notice are met;
    • The following copyright notices are retained when present, and conditions provided in accompanying permission notices are met:
    Copyright 1994 Hewlett-Packard Company
    Copyright 1996,97 Silicon Graphics Computer Systems, Inc.
    Copyright 1997 Moscow Center for SPARC Technology.
    Copyright 1999,2000 Boris Fomitchev
    Copyright 2001 SAP AG
    Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
    Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Silicon Graphics makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
    Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Moscow Center for SPARC

  • Webi Report Schedule failing in BI Launchpad

    Hi,
    I am wondering if anyone has come across this error message when trying to schedule a webi report in BI Launchpad.
    Firstly, the webi report refreshes successfully in BI Launchpad. The source for the Webi report is an OLAP universe that was migrated from a 3.1 environment into BI 4.0.
    The error message occurring when scheduling is:
    'while trying to invoke the method org.eclipse.emf.ecore.EObject.eClass() of an object loaded from local variable 'eObject' '
    I haven't been able to find any documentation on this error message on a failed scheduled.
    If anyone has an idea what might be causing this I would appreciate the help.
    Many thanks,
    Ainsley

    Hi,
    - Does your souce BEx have SAP Variables coming through to the OLAP universe as Filters?
    - Does your WebI document's dataprovider have filters defined as Prompts in the query panel ?
    - or, I wonder if 'local variable' may refer to a report-level variable ? i doubt it. i imaging it's the SAP VAR.
    I know that these 2 types of prompts have been troublesome on occasions with scheduling.
    Please check Note 1602665 - SAP BusinessObjects 4.0 SP02 Patch 2.6 Release Notes
    and refer to the fixed issues .pdf attached
    there are a number 3 / 4 corrections for scheduling webi with prompts ontop of bw
    Regards,
    H

  • Server Side Trust and Webi Report Scheduling via Portal

    Hello,
    I have opened a similar  thread about Server Side Trust and webintelligence reporting through the portal a few months ago.
    At the time, we had some complaints about users that were getting SSO errors after 8 hours when scheduling WeBi Report through the SAP Portal.
    Basically, the users connect to the Portal and then FROM the Portal, to a BOI view pointing to the Infoview.
    Then, after investigatinon, it was my understanding that the WebI Reports should be scheduled through an Infoview token and not a portal token. In concrete terms Server Side Trust had to be implemented between the SAP BW Backend and the BOE 3.1 Server.
    And after that the users who wanted to schedule WebI reports should connect to the Infoview directly (using their SAP BW credentials) to generate an Infoview Token.
    Scheduling Webi reports from the Portal will not be solved by implementing Server Side Trust, since it is only a matter of time before the  the Portal token expires ( 8 hour by default).
    Now, I have configured the server side Trust between our BOE 3.1 SP2 and our BW 701 system, SNC configuration, PSE generation, exchange of certificats , etc ...
    I did some scheduling tests connecting directly to the BO Infoview and it works.
    But of course, now I am being told by the users that this solution is not acceptable.
    The Portal being the entry point of our Infrastructure, they don't want to connect to the Infoview to schedule their reports.
    So I opened a SAP customer call to try to have an official and clear statement from SAP but I never obtained it.
    I had a look at my SAP BO courses but I am still confused
    For example according to SAP BO100 , server side trust should be implemented when ;
    "BOE client session authenticated using Single sign on using SAP token
    (Enterprise Portal) and SAP reports are being scheduled at a future point in
    time (after token expiry date)."
    Anyone can help me to clear my mind ?
    Thank you
    Best Regards

    Hi,
    first of all lets separate the UI portion from the technical portion.
    on the technical side:
    yes for scheduling the Web Intelligence document you will need Server side trust
    on the UI side:
    - scheduling is part of InfoView
    - scheduling is part of the KM integration with the portal
    if that is not accepted from a UI point of view from the user you can create your own application to schedule documents using the SDK.
    ingo

  • Refresh document call in RESTful workflow is taking long time.

    Hi,
    I am facing an issue with the Refresh Document step, in Raylight Workflow using RESTful API.
    We are using this Refresh Document call, To make the dataprovider mappings formed.
    For few WEBI documents, this Refresh document step is taking much time to complete. After some investigation, we got to know that there are a series of SQL scripts running against actual data source, for each Refresh Document call. If the SQL script is taking much time, then the refresh document call is taking much time as well.
    Up to now, we are able to solve this problem in some cases, Like below.
    1. For a WEBI Document with Contexts to Answers during Refresh Document:
    Ex:
    Method: PUT
    URI: http://localhost:6405/biprws/raylight/v1/documents/1111/parameters
    Request Body: (setting default Context)
    <parameters>
      <parameter>
        <id>3</id>
        <answer>
          <values>
            <value id="4">Context1</value>
          </values>
        </answer>
      </parameter>
    </parameters>
    Result: Success (No Time out Exception)
    2. For a WEBI Document with some prompts to Answers during Refresh Document:
    Ex:
    Method: PUT
    URI: http://localhost:6405/biprws/raylight/v1/documents/1111/parameters
    Request Body: (With Some Dummy Values)
    <parameters>
      <parameter type="prompt" optional="true">
        <id>1</id>
        <answer type="Text">
          <values>
            <value id="1">Dummy Text</value>
          </values>
        </answer>
      </parameter>
      <parameter type="prompt" optional="true">
        <id>3</id>
        <answer type="Numeric">
          <values>
            <value id="1">0</value>
          </values>
        </answer>
      </parameter>
    </parameters>
    Result: Success (No Time out Exception)
    3. For a WEBI Document with No prompts and No Contexts to Answers during Refresh Document:
    Ex:
    Method: PUT
    Request Body: (Empty)
    Result: Time Out Exception (from my C# code)
    Only In this scenario (3) i am facing issue, As I have no answers to set any default values to Parameters. So the SQL scripts are executing. Due to this, if there is any time taking scripts, then the Refresh document step is taking much time or even throwing Time out exception from my C# code. I tried by increasing the timeout for WebRequest in C#, But still not solved.
    For creation of a WEBI document, Can we skip the SQL scripts, running in Refresh Document API call?
    If yes, then please let me know your valuable ideas to solve my problem.
    Please let me know for more information.
    Thanks in advance.
    Thanks,
    Mahendra

    Hi Anthony,
    Yes, I tried creating same WEBI Document using Web Intelligence Rich Client and also using Web Intelligence from BI Launch Pad.
    On both WEBI Clients I am able to create the same WEBI Document, which I am trying to create using RESTful API.
    My observations are like below:
    Observation 1: After selecting required Result Objects/columns in Query Panel, by clicking on Close -> Apply Changes and Close button, I can create the WEBI Document and Save it successfully.
    Observation 2: After selecting required Result Objects/columns in Query panel, If I click on Run Query, It is taking much time to bring fresh data.
    Just like in my first observation, I am only looking for creating WEBI Documents successfully, without bringing fresh data. It is enough for me, If I can create the WEBI documents from RESTful API successfully. Here I am not looking for any fresh data from this Refresh Document step, except the dataprovider mappings.
    As mentioned in my previous reply, Without dataprovider mappings, we are unable update Report Specification. For this, to make the dataprovider mappings formed, we are using this Refresh Document step, After updating dataprovider specification
    Is this Refresh Document call required in Workflow?
    Please suggest me if any other REST API Call, that I can use to get the dataprovider mappings formed, other than Refresh Document step.
    Thanks in advance. Currect me if I am wrong.
    Thanks,
    Mahendra

  • Calling up a Performance Manger SPC Chart from a WebI document

    Post Author: satwar
    CA Forum: Performance Management and Dashboards
    Please forgive my terminology, as I'm only a superuser of B.O. not a computer trained person.I have put a few years into configuring WebI document reports in InfoView of B.O. XI 2.  Our company is getting into SPC in a big way, hence my attention has turned to Performance Manager.  I was disappointed to learn that I have to create a whole new Universe of objects in Performance Manager in order to conduct SPC analysis on the variables I have been reporting in tables & graphs in WebI documents in InfoView.I can learn to accept that aspect of B.O. but I am a little concerned about my users having to navigate through Performance Manager to view SPC analytics.  My users have put up considerable resistance just navigating to WebI documents in InfoView.Hope seemed to be around the corner when I read about calling up Performance Manager analytics from WebI documents.  Having read the details it seems like these WebI documents are created in the Performance Manager Universe, not in the Infoview WebI documents that I have already developed in InfoView.If anyone can explain and clarify how this feature works, I'd be eternally grateful. 

    Post Author: jezbraker
    CA Forum: Performance Management and Dashboards
    You can Link any documents that are stored as objects in the cmc, regardless of the universe or way in which they were created.openAnalytic.jsp will allow you to open pretty much anything much as does openDocument  int the webi world.Once you create the SPC chart in process analysis youll need to view it in the control chart screen then click save as and save it into one of you folders in the corp repository. When this is done you can quickly get an example of the URI syntax by going to create new document in dashboard manger, selecting interactive metric trends, expanding navigation and legend opions, clicking browse, selecting your newly saved analytic and clicking ok.  This will but a url into the text box which you can copy and paste into your webi doc links - here's an example of the kind of thing... openAnalytic.jsp?DocumentName=MySPCanalytictest&RepositoryType=C&RepositoryName=SPCTest&DocumentExt=afd&DocumentId=AadTAN28x6lMpTxxlAhW09s&mode=full You may need to stick the odd ../../ or /jsp/ etc in front of the url depecing where you plan to call it from of course. You'll find descriptions of parameters etc for openAnalytic in the product docs. cheers,jez.  

  • Extracting SQL statement from a Webi document's data provider using SDK.

    Hi all,
    Is it possible to extract the SQL statement from an existing Webi document's data provider using BO SDK?  I've searched through the class library but haven't found any information on this yet.  If you have done it, could you provide some guidance.  Many thanks.

    I found the following Java code that might be of some help to you. I realize you are using .NET but this might push you down the right path.
    The trick here is to use the Report Engine SDK to get the DataProvider of the DocumentInstance. Then, look at the SQLDataProvider to get your SQLContainer.
    My apologies for the poor formatting. This didn't copy and paste over to the forums very well. I've cleaned up as much as I could.
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
    <%@ page import="com.businessobjects.rebean.wi.*" %>
    <%
    boolean loginSuccessful = false;
    IEnterpriseSession oEnterpriseSession = null;
    String username = "username";
    String password = "password";
    String cmsname  = "cms_name";
    String authenticationType = "secEnterprise";
    try
    //Log in. oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsname, authenticationType);
    if (oEnterpriseSession == null)
    out.print("<FONT COLOR=RED><B>Unable to login.</B></FONT>");
    else
    {  loginSuccessful = true;
    catch (SDKException sdkEx)
    { out.print("<FONT COLOR=RED><B>ERROR ENCOUNTERED</B><BR>" + sdkEx + "</FONT>");}
    if (loginSuccessful) { IInfoObject oInfoObject = null;
    String docname = "WebI document name";
    //Grab the InfoStore from the httpsession IInfoStore oInfoStore = (IInfoStore) oEnterpriseSession.getService("", "InfoStore");  //Query for the report object in the CMS.  See the Developer Reference guide for more information the query language.   String query = "SELECT TOP 1 * " +        "FROM CI_INFOOBJECTS " +        "WHERE SI_INSTANCE = 0 And SI_Kind = 'Webi' " +        "AND SI_NAME='" + docname + "'";
    IInfoObjects oInfoObjects = (IInfoObjects) oInfoStore.query(query);
    if (oInfoObjects.size() > 0)
    //Retrieve the latest instance of the report  oInfoObject = (IInfoObject) oInfoObjects.get(0);
      // Initialize the Report Engine  ReportEngines oReportEngines = (ReportEngines)
    oEnterpriseSession.getService("ReportEngines"); 
    ReportEngine oReportEngine = (ReportEngine) oReportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
      // Openning the document  DocumentInstance oDocumentInstance = oReportEngine.openDocument(oInfoObject.getID());   
    DataProvider oDataProvider = null; 
    SQLDataProvider oSQLDataProvider = null; 
    SQLContainer oSQLContainer_root = null; 
    SQLNode oSQLNode = null;
    SQLSelectStatement oSQLSelectStatement = null; 
    String sqlStatement = null;
      out.print("<TABLE BORDER=1>");
    for (int i=0; i<oDocumentInstance.getDataProviders().getCount(); i++)
    oDataProvider = oDocumentInstance.getDataProviders().getItem(i);
      out.print("<TR><TD COLSPAN=2 BGCOLOR=KHAKI>Data Provider Name: " + oDataProvider.getName() + "</TD></TR>");
       if (oDataProvider instanceof SQLDataProvider)
    oSQLDataProvider = (SQLDataProvider) oDataProvider;
        oSQLContainer_root = oSQLDataProvider.getSQLContainer();
        if (oSQLContainer_root != null)
    for (int j=0; j<oSQLContainer_root.getChildCount(); j++)
    oSQLNode = (SQLNode) oSQLContainer_root.getChildAt(j);
          oSQLSelectStatement = (SQLSelectStatement) oSQLNode;             
    sqlStatement = oSQLSelectStatement.getSQL();     
    out.print("<TR><TD>" + (j+1) + "</TD><TD>" + sqlStatement + "</TD></TR>");   
    else
    out.print("<TR><TD COLSPAN=2>Data Provider is not a SQLDataProvider.  SQL Statement can not be retrieved.</TD></TR>");   }  }  out.print("</TABLE>");
      oDocumentInstance.closeDocument(); }
    oEnterpriseSession.logoff();}%>

  • Document Set Creation in document library using REST API in Sharepoint 2013

    Hi,
    I want to create the document set using REST API call. Currently i am able to create the folder and able to upload the files using REST API's in the document library. Is there any way we can pass the contentype name or Id and create the document set using
    REST API call. We need to create the document set along with metadata and upload the files inside the document set.
    I need to create the document set along with meta data column values using REST API. Please let me know how we can achieve this through REST API.
    Thank you,
    Mylsamy

    Hi,
    According to your post, my understanding is that you wanted to create document set along with managed metadata fields.
    The REST API does not currently support working with Managed Metadata or Taxonomy fields.
    As a workaround, we can use the JavaScript Client Object Model.
    Create document set using JavaScript Client Object Model.
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/aacd96dc-0fb2-4f0d-ab4c-f94ce819e3ed/create-document-sets-with-javascript-com-sharepoint-2010
    Set managed metadata field with JavaScript Client Object Model.
    http://sharepoint.stackexchange.com/questions/95933/add-list-item-with-managed-metadata-field-through-jsom
    http://sharepointfieldnotes.blogspot.com/2013/06/sharepoint-2013-code-tips-setting.html
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • 3 different IDs with one Skype account?

    Hi, I'm trying to sort out a mismatch with my Skype-ID, Microsoft-ID and mail address. I don't get it, please help me to understand the underlying system. The first IDs I get aware of is when I start Skype and click onto the symbol in the upper right

  • No tax information exists for billing document

    Hi We have a problem. In our scenario, we create a service order followed by service confirmation and bill from service confirmation. All prices including taxes are maintained in r/3. prices and taxes are picked in the service confirmation also. When

  • Firefox loads website in the wrong tab when I click a link and change tabs.

    In Firefox when I open a new tab and type in a webpage or click on the homepage button, then change to anoter tab while I wait for it to load, it will load the site in the tab I've switched to instead of the tab that I initially put the address in. T

  • Help!! my iphone just stuck on the contact page!

    I just wanted to call someone and it stuck on the contact page! i tried to shut it down but when i opened it , it steel on the that page and refuse to get back to the homepage , what should i do?

  • How can I get the highest control loop speed?

    currently I am doing a nonlinear control. whose control loop speed is higher than 20k. My PXI is 8145 and 8175 , with DAQ card 6040E. Each time I need only one point in and then processing , then output a point.