cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions and Custom SQL in Webi SDK

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Active Contributor
0 Kudos


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

Former Member
0 Kudos

Thanks Dan.  I was hoping there might be any easier way that uses JSON instead of XML, but this will work at least.

Former Member
0 Kudos

I realized today that my client is using 4.1 SP3, which does not yet support the Queryplan web service.  Is there another way to discover if a query uses custom SQL in 4.1 SP3?

Thanks,

Ryan

daniel_paulsen
Active Contributor
0 Kudos

Hi Ryan,

I'm not aware of any other means to determine if Custom SQL is used in BI4.1.

Rebean won't do it in BI4 and the Soap web services are not fine-grained enough to get that information either.

QueryPlan was introduced in SP04.

Dan

Answers (0)