problem with StiWebDesigner1_GetPreviewDataSet

Stimulsoft Reports.WEB discussion
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

problem with StiWebDesigner1_GetPreviewDataSet

Post by sofiane »

I have problem with : StiWebDesigner1_GetPreviewDataSet


when I use : e.Report.RegData("Beop3Project", "Portfolio", company); I can not visualise my report from my Web Designer:
Company is an Object.


The same Code is work with last version ! (04/2011)

When I updat the "prerelease builds" (13/10/2011) : Thats not work !

protected void StiWebDesigner1_GetPreviewDataSet1(object sender, StiWebDesigner.StiPreviewDataSetEventArgs e)
{


...............

e.Report.RegData("Beop3Project", "Portfolio", company);
...............


}


I noticed when I updat "the prerelease Builds" the StimulSoft.Design is not changed there is not a new version of this file

Thanks in advance for help




HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

problem with StiWebDesigner1_GetPreviewDataSet

Post by HighAley »

Hello.
sofiane wrote:I have problem with : StiWebDesigner1_GetPreviewDataSet

when I use : e.Report.RegData("Beop3Project", "Portfolio", company); I can not visualise my report from my Web Designer:
Company is an Object.

The same Code is work with last version ! (04/2011)

When I updat the "prerelease builds" (13/10/2011) : Thats not work !

protected void StiWebDesigner1_GetPreviewDataSet1(object sender, StiWebDesigner.StiPreviewDataSetEventArgs e)
{

...............

e.Report.RegData("Beop3Project", "Portfolio", company);
...............


}

I noticed when I updat "the prerelease Builds" the StimulSoft.Design is not changed there is not a new version of this file
If Company is an object then you should use RegBusinessObject() method.
Please, describe your Company object.

Thank you.
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

problem with StiWebDesigner1_GetPreviewDataSet

Post by sofiane »

Hello,

Company is an object composed from portfolios
Portfolio is an object composed from projects
Project is an object composed from Tasks

When I try to vidsualise the projects list by the Call of RegData Method thats worked with (04/2011) version.
e.Report.RegData("Beop3Project", "Portfolio", company);


when I try to visualise the list project by the call of RegBusinessObject() method thats not worked with (04/2011) version nor the (21/10/2011)

e.Report.RegBusinessObject("Beop3Project", "Portfolio", company);


In the report I used data Band company as master component of portfolio dataBand
The portfolio dataBand is master Component of project DataBand
The Project dataBand is master Component of Tasks Lis


can you explain where is the problem ?

Thanks

Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

problem with StiWebDesigner1_GetPreviewDataSet

Post by Alex K. »

Hello,

Please try to use the following code:

Code: Select all

report.RegBusinessObject();
report.Dictionary.SynchronizeBusinessObjects()
if it not help, can you please send us a sample project with test data for analysis.

Thank you.
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

problem with StiWebDesigner1_GetPreviewDataSet

Post by sofiane »

Hello,

The problem with report.RegBusinessObject() : is that we cannot find the components of the object in Dictionnary.

When we pass component as parameter to report.RegBusinessObject() : I do'nt find the components of company : portfolio, project and tasks in Dictionnary!
But with report.RegData() we find them in DataSource and we can use Master Data Band and its childs :-)

It is to be noted that the same code work with "04/2011" version but do not work in "21/10/2011" version
There is no problem with WebviewerFx nor Webviewer in both versions. thats work

The problem is only when we try to preview the report from WebDesigner in only last version "21/10/2011"

I need to work with last version because it takes into acount (params.allowscriptaccess = "always");

Thank you





Attachments
1381.Test_Business Object.rar
(1.51 MiB) Downloaded 372 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

problem with StiWebDesigner1_GetPreviewDataSet

Post by HighAley »

Hello.

We need more time to prepare an answer for you.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

problem with StiWebDesigner1_GetPreviewDataSet

Post by Alex K. »

Hello,

Please check the modified project in attachment also please check the last prerelease build.

Thank you.
Attachments
1391.Test_Business Object.zip
(1.72 MiB) Downloaded 1906 times
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

problem with StiWebDesigner1_GetPreviewDataSet

Post by sofiane »

THANK YOU very much for your help

Sofiane
sofiane
Posts: 43
Joined: Fri Jun 17, 2011 8:33 am
Location: france

problem with StiWebDesigner1_GetPreviewDataSet

Post by sofiane »

I think that the filter not wok with Business Object please is is to be verified
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

problem with StiWebDesigner1_GetPreviewDataSet

Post by Andrew »

Hello,

We have checked the filters, in the latest prerelease build it should work correctly. If filters do not work correctly in your report, please describe the issue in more detail - what are filters to which you apply objects?

Thank you.
Post Reply