Birt Report with scripted dataset, Rptdesign Preview issue [message #714353] |
Wed, 10 August 2011 11:59 |
|
Hello All,
I am using scripted dataset for my report and right now I just started with a sample report where I have generated 1-10 number and want to show that on report, I have attached the report.
When I try to see the dataset preview, I can see the data in preview (see image 1.png),
but when I use Rptdesign Preview option in eclipse I do not see anything and it keeps running infinitely (See image 2.png)
i have checked multiple blogs and Birt-exchange question but did not find any solution. can you please help with this.
i checked following posts
http://download.eclipse.org/birt/downloads/examples/scripting/scripteddatasource/scripteddatasource.html
http://www.birt-exchange.org/org/forum/index.php/topic/10223-birt-report-with-scripted-data-set-does-not-show-in-preview-tab/page__s__95df8a2455b1841f41a8f48b4c60e344
http://www.vogella.de/articles/EclipseBIRT/article.html
http://birtworld.blogspot.com/2008/05/birt-swapping-data-set-at-runtime.html
Thanks
Shivani
-
Attachment: TestScripting.rptdesign
(Size: 5.60KB, Downloaded 230 times) -
Attachment: 1.PNG
(Size: 23.87KB, Downloaded 256 times) -
Attachment: 2.PNG
(Size: 15.10KB, Downloaded 236 times)
|
|
|
Re: Birt Report with scripted dataset, Rptdesign Preview issue [message #714497 is a reply to message #714353] |
Wed, 10 August 2011 16:29 |
|
Change the data set scripts to:
open
currentCount = 0; //not using the var keyword will make it global
//to the dataset
fetch
if (currentCount < 10)
{
currentCount++;
row["cnt"] = currentCount;
return true;
}
return false;
Jason
On 8/10/2011 7:59 AM, shine_1611 wrote:
> Hello All,
>
> I am using scripted dataset for my report and right now I just started with a sample report where I have generated 1-10 number and want to show that on report, I have attached the report.
>
> When I try to see the dataset preview, I can see the data in preview (see image 1.png),
> but when I use Rptdesign Preview option in eclipse I do not see anything and it keeps running infinitely (See image 2.png)
>
> i have checked multiple blogs and Birt-exchange question but did not find any solution. can you please help with this.
> i checked following posts
> http://download.eclipse.org/birt/downloads/examples/scripting/scripteddatasource/scripteddatasource.html
> http://www.birt-exchange.org/org/forum/index.php/topic/10223-birt-report-with-scripted-data-set-does-not-show-in-preview-tab/page__s__95df8a2455b1841f41a8f48b4c60e344
> http://www.vogella.de/articles/EclipseBIRT/article.html
> http://birtworld.blogspot.com/2008/05/birt-swapping-data-set-at-runtime.html
>
> Thanks
> Shivani
|
|
|
Powered by
FUDForum. Page generated in 0.03011 seconds