Skip to Content
author's profile photo Former Member
Former Member

Conditions and Custom SQL in Webi SDK

I'm porting an application written using REBean in BusinessObjects 3.1 to use the new Webi RESTful SDK. I'm currently working with BI 4.1 SP4. There are two things that I could do in easily REBean that I am having a hard time figuring out in the new SDK.

  1. View condition information on a data provider -- In REBean you could use the ConditionContainer object to navigate the condition tree on a query and see all of the query's conditions, including the object name and operator. This information doesn't seem to be included in the Data Provider Details web service so I'm not sure where to find it. Am I missing something? Is the Query Specification the only place where this information is available?
  2. Identify whether a query is using custom SQL -- As far as I know, this is different than Freehand SQL data providers which are supported in the new SDK. In REBean you could use SQLDataProvider.isCustomSQL() to discover if a particular query had the Custom SQL radio button selected in the universe query panel. Again, this information doesn't seem to be included on the Data Provider Details web service. How can I tell if a query is using Custom SQL in the new Web Services SDK?

Thanks,

Ryan

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 09, 2014 at 10:37 PM


    Hi Ryan,

    Both of your questions are possible.

    1. you can get the queriesTree and conditions, including names and operators, from the specification of the dataprovider with the following request (text/xml)

    GET /raylight/v1/documents/<docId>/dataproviders/<dataproviderId>/specification

    2. you can identify custom SQL by returning the queryPlan of the dataprovider (application/xml)

    GET /raylight/v1/documents/<docId>/dataproviders/<dataproviderId>/queryplan

    Response:

    <queryplan editable="true" custom="true">

    <statement index="1">

    your customized SQL

    </statement>

    </queryplan>

    I hope this helps,

    Dan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.