Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Birt Report with scripted dataset, Rptdesign Preview issue ( Not able to see data when switch to Preview tab)
Birt Report with scripted dataset, Rptdesign Preview issue [message #714353] Wed, 10 August 2011 11:59 Go to next message
shine_1611 is currently offline shine_1611Friend
Messages: 20
Registered: April 2011
Location: Mumbai
Junior Member
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 229 times)
  • Attachment: 1.PNG
    (Size: 23.87KB, Downloaded 252 times)
  • Attachment: 2.PNG
    (Size: 15.10KB, Downloaded 229 times)
Re: Birt Report with scripted dataset, Rptdesign Preview issue [message #714497 is a reply to message #714353] Wed, 10 August 2011 16:29 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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
Previous Topic:Re: Enabling study layout in JavaScript generated axes
Next Topic:Missing column
Goto Forum:
  


Current Time: Thu Mar 28 15:48:46 GMT 2024

Powered by FUDForum. Page generated in 0.05596 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top