on 04-25-2019 11:16 AM
Hi,
How to get a table row count from the report using business objects web service.
Here is my complete requirement :
- I will schedule a report using publication.
- After the schedule gets success. Through BO Restful web service, I want to get the row count from a particular report/Data provider that run.
Thanks in advance.
When retrieving the details of a data provider, the rowCount is in the result
GET /documents/<documentID>/dataproviders/<dataProviderID>
......
<duration>2</duration>
<isPartial>false</isPartial>
<rowCount>99</rowCount>
<flowCount>1</flowCount>
<dictionary>
....
....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the response Ayman Salem.
I tried with the URL provided.
Here is the reponse that i am getting.
...................
<updated>2019-04-26T00:12:59.000+05:30</updated>
<duration>1</duration>
<isPartial>false</isPartial>
<rowCount>454</rowCount>
<flowCount>2</flowCount>
...................
But the data provider consists of a combined query (A Minus B) which gave me result only 1 record in UI.
Can you please help me in understanding this.
Thanks in Advance.
The returned "rowCount" is the sum of the number of rows in all queries in the selected data provider.
In your case, this is the total number of rows of both combined query (rowCount A + rowCount B).
...
To get the net number of rows (in your case, 1 row), you should use a workaround.
Use "flow" to get the net result, then count the <row> element
GET /documents/<documentID>/dataproviders/<dataProviderID>/flows/0
<flow>
<metadata>
<value dataObjectId="DP0.DO1" type="String">Year</value>
....
....
</metadata>
<row>
<value>2014</value>
...
...
</row>
<row>
...
...
</row>
<row>
...
...
</row>
</flow>
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.