How to know the number of records in a dataset using script? [message #674033] |
Wed, 25 May 2011 11:36  |
Eclipse User |
|
|
|
The question seems simple, but I cannot find a way to know the size of the dataset, something like dataset.size(), how to do that?
Also, when to put this function? in dataset afterOpen event?
I am using birt designer 2.2.1.
Thanks.
[Updated on: Wed, 25 May 2011 11:37] by Moderator
|
|
|
|
|
Re: (no subject) [message #674338 is a reply to message #674171] |
Thu, 26 May 2011 10:22  |
Eclipse User |
|
|
|
You could always put a script in the onFetch like
importPackage( Packages.java.io );
out = new PrintWriter( new FileWriter( "c:/test/ds.txt", true ) );
out.println( "row value "+ dataSetRow["ORDERNUMBER"]);
out.close();
Jason
On 5/25/2011 10:10 PM, forums-noreply@eclipse.org wrote:
> thanks for the reply.
> Sometimes I think the dataset must has record but the table binding to
> the dataset does not show any record, so I want to use script to debug,
> so any scripting method can do that (show the number of record in a
> dataset, something like dataset.size())?
>
> thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03792 seconds