Problem with Childbands

Stimulsoft Reports.NET discussion
Post Reply
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Problem with Childbands

Post by Stephan1 »

Hi,

i've got a question about Childbands.

I've got a Databand with 5 Childbands. In the Databand a condition is set.

The Databand is not printed.

But....

The Childbands are visible. I knew there was once a problem with childbands and it was resolved. But now it seems that the same error exists.

So when a Databand is not printed and in Childband "Print if Parent Disabled" is set to FALSE then the child should not be printed, no matter what condition it has.

Also what is very strange is, when i look in the generated Code i guess there is an error.

Look:

Me.ChildBand13.Parent = Me.Page1 ---> I guess the Parent should be the Databand ? like: Me.ChildBand13.Parent = Me.Databand1

Version we're using is 2011.1.909.

Is that Error fixed in a newer version? so i would try an update.

Cheers

Stephan



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

Problem with Childbands

Post by Alex K. »

Hello,

Please send us a sample report with test data which reproduces the issue.

Thank you.
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Problem with Childbands

Post by Stephan1 »

Aleksey wrote:Hello,

Please send us a sample report with test data which reproduces the issue.

Thank you.
Hi Aleksey,

it's just easy to test it takes 2 minutes.

1. open new report.
2. Create CSV with 1 col and 5 rows. (like 1,2,3,4,5).
3. Create Databand with that csv.
4. Put a Childband under the databand.
5. put the Col1 column in childband.
6. Set a condition in that childband where col1 > 2.
7. Set Databand enabled to FALSE.

Now, the childband is printed with data Col1 >2 althrough the Databand1 is set to FALSE.
Also if you look in code the ChildBand1.Parent is set to Page1. Should not the Parent of a childband is the Databand? not the page?

I guess the ONLY problem is, if you put a childband in the report, the PARENT is set to PAGE not to the above DATABAND, thats not right or ?

Thank you.



Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problem with Childbands

Post by Ivan »

Hello,
Stephan1 wrote:I've got a Databand with 5 Childbands. In the Databand a condition is set.
The Databand is not printed. But.... The Childbands are visible. ...
This problem was fixed in the 2011.1 release.
Please check the latest prerelease build or 2011.1 release and let us know about the result.
If the issue is still present, please send to us a mrt file with data, which reproduce the issue, for analysis.
Stephan1 wrote:Also if you look in code the ChildBand1.Parent is set to Page1. Should not the Parent of a childband is the Databand? not the page?
The Parent property means the parent container, not the master component.

Thank you.
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Problem with Childbands

Post by Stephan1 »

Ivan wrote:Hello,
Stephan1 wrote:I've got a Databand with 5 Childbands. In the Databand a condition is set.
The Databand is not printed. But.... The Childbands are visible. ...
This problem was fixed in the 2011.1 release.
Please check the latest prerelease build or 2011.1 release and let us know about the result.
If the issue is still present, please send to us a mrt file with data, which reproduce the issue, for analysis.
Stephan1 wrote:Also if you look in code the ChildBand1.Parent is set to Page1. Should not the Parent of a childband is the Databand? not the page?
The Parent property means the parent container, not the master component.

Thank you.
Hi Ivan,

thx for your info.

Now tried Version 2011.2.1019 from 13. July 2011.

Same Problem. It ONLY occurs if you set a Condition in the childband. If no condition is set, then the child is not printed, which is correct.

But if you set a Condition as i mentioned in my prev. post the childband is printed. That means if i have a condition set in the Databand to disable it, i have to put that condition also in every of my childbands, otherwise they are printed.

My understanding is, no matter what condition is set in a childband, if the Databand enable state is FALSE then the Childbands are NEVER printed. only when i set "Print if Parent Disabled" to true then they are printed.

i just created a Support Ticket for you to check this behaviour. TICKET ID: GGG-339754

Thank you

Stephan
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problem with Childbands

Post by Ivan »

Hello,

We made some improvements in that direction.
Please check the next prerelease build when it will be available and let us know about the result.

Thank you.
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

Problem with Childbands

Post by Stephan1 »

Ivan wrote:Hello,

We made some improvements in that direction.
Please check the next prerelease build when it will be available and let us know about the result.

Thank you.
Hello Ivan,

i tried the new version 2011.2.1020 from 21.07.2011.

Now it seems to work as it should.

Can you confirm that in this version the problem is solved ? in the release news there is no information about a fix for childbands.

thank you

Stephan
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problem with Childbands

Post by Ivan »

Hello,
Stephan1 wrote:Can you confirm that in this version the problem is solved ? in the release news there is no information about a fix for childbands.
Not all fixes are included in the weekly description, only the most important ones. Also many problems are fixed by indirect way – by fixing other errors.

Thank you.
Post Reply