Quantcast
Channel: SCN : Popular Discussions - RESTful Web Services SDK
Viewing all articles
Browse latest Browse all 1088

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 1088

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>