Clone element with multiple panels
Clone element with multiple panels
Hello the Stimulsoft Team,
I'd like to use one clone including a container that match with multiple panels which are situated on another page. With a condition or an event, is it possible to change the container before rendering the report ?
I think an event is the better method, but only the first panel appears on the final report
There is a sample in attachment, with his XML data source file. I used here a beforeRender envent on the data band.
Thanks in advance.
Arnaud
I'd like to use one clone including a container that match with multiple panels which are situated on another page. With a condition or an event, is it possible to change the container before rendering the report ?
I think an event is the better method, but only the first panel appears on the final report
There is a sample in attachment, with his XML data source file. I used here a beforeRender envent on the data band.
Thanks in advance.
Arnaud
- Attachments
-
- data sample.xml
- (49.43 KiB) Downloaded 233 times
-
- report sample.mrt
- (304.88 KiB) Downloaded 433 times
Re: Clone element with multiple panels
Hello,
We couldn't run your report. In your report dictionary is empty and all relations are lost.
Thank you.
We couldn't run your report. In your report dictionary is empty and all relations are lost.
Thank you.
Re: Clone element with multiple panels
Hello,
I don't understand because the xml file contains data on my post.
Here is some screenshots.
On a fist page, I use a clone in a data band in reference to a category named "ARTICLE". The clone is not affected to a panel a this time.
On another page, that is desabled, I place another band that referenced to the "ARTICLE" category. Then, I place on this band multiples clones whose names could be seen on the first screenshot.
There is the second one that present the second page of my report : With an "before rendering" event that I use with the databand of the fist page, I'm trying to change the container in function of a value returned by one of our variables.
Here is a sample of those variables present in the report dictionnary : I use that kind of test in the event :
When the value is initialized with the first data, the container is correctly affected. With a second value received in the databand, that is different of the first one, the clone is still refered to the same container when rendering. With a third value that is the same as the first one, the clone present correctly to the panel.
I hope my explanations are enough detailed.
Thanks in advance.
I don't understand because the xml file contains data on my post.
Here is some screenshots.
On a fist page, I use a clone in a data band in reference to a category named "ARTICLE". The clone is not affected to a panel a this time.
On another page, that is desabled, I place another band that referenced to the "ARTICLE" category. Then, I place on this band multiples clones whose names could be seen on the first screenshot.
There is the second one that present the second page of my report : With an "before rendering" event that I use with the databand of the fist page, I'm trying to change the container in function of a value returned by one of our variables.
Here is a sample of those variables present in the report dictionnary : I use that kind of test in the event :
Code: Select all
if(ARTICLE.ARTICLEFRN.VAL181 == "HApplique") Clone1.Container = PanneauHApplique;
if(ARTICLE.ARTICLEFRN.VAL181 == "HAppliqueDecalageSeuil") Clone1.Container = PanneauHAppliqueDecalageSeuil;
Thanks in advance.
Re: Clone element with multiple panels
Hello,
Your XML file does not contain relations. Please send us XSD file also.
Thank you.
Your XML file does not contain relations. Please send us XSD file also.
Thank you.
- Attachments
-
- Capture.PNG (78.04 KiB) Viewed 6811 times
Re: Clone element with multiple panels
Hi,
I've seen with our developer, we don't have XSD files.
Those relations are added after loading the XML file in the dictionnary by using those instructions (c# code) :
The developer told me the XML file I've send to you was finally unfinished.
There is another file in attachment. I hope you could use this one.
Thanks,
Arnaud
I've seen with our developer, we don't have XSD files.
Those relations are added after loading the XML file in the dictionnary by using those instructions (c# code) :
Code: Select all
DataColumn parentCol = _reportData.Tables["ARTICLEFRN"].Columns["_ID"];
DataColumn childCol = _reportData.Tables["ARTICLE"].Columns["_IDCMDFRN"];
_reportData.Relations.Add(parentCol, childCol);
DataColumn parentCol = _reportData.Tables["GRPART"].Columns["_ID"];
DataColumn childCol = _reportData.Tables["ARTICLE"].Columns["_IDGRPART"];
_reportData.Relations.Add("GRPART_ARTICLE", parentCol, childCol);
There is another file in attachment. I hope you could use this one.
Thanks,
Arnaud
- Attachments
-
- data sample.xml
- (72.71 KiB) Downloaded 410 times
Re: Clone element with multiple panels
Hello,
You can use the following code in the AfterPrint event of the page to save uses data to xml and xsd:
Thank you.
You can use the following code in the AfterPrint event of the page to save uses data to xml and xsd:
Code: Select all
ARTICLE.DataTable.DataSet.WriteXml(@"d:\data.xml");
ARTICLE.DataTable.DataSet.WriteXmlSchema(@"d:\data.xsd");
Re: Clone element with multiple panels
Hello,
Here there are.
Thank you
Here there are.
Thank you
Re: Clone element with multiple panels
Hello,
Thank you for the test data.
We need some additional time to investigate the issue. We will let you know about te result.
Thank you.
Thank you for the test data.
We need some additional time to investigate the issue. We will let you know about te result.
Thank you.
Re: Clone element with multiple panels
Thanks too
Re: Clone element with multiple panels
Hello.
Please, try to add a Sub-report with a Data band and Child bands.
You could disable all unnecessary Child bands using Conditions.
Please, look at the attached image.
Thank you.
Please, try to add a Sub-report with a Data band and Child bands.
You could disable all unnecessary Child bands using Conditions.
Please, look at the attached image.
Thank you.
- Attachments
-
- SubReportImage.mrt
- (12.45 KiB) Downloaded 410 times