Page 1 of 1

Problem with ShiftingMode

Posted: Wed Feb 19, 2014 3:05 pm
by PJoyeux
Hi,

in many of my reports I use the property "ShiftingMode" to accomodate the position of components to the extent/height of preceding components. This seems to work but sometimes it doens't and for the life of me, I can't figure out why.

This is how my report looks when printed. Two labels are printed above each other because the shifting doesn't work (at least this is my assumption...)
a screenshot of the rendered report with the visible problem.
a screenshot of the rendered report with the visible problem.
Shifting_Wrong.png (21.78 KiB) Viewed 6112 times
If I replace the formular (IIF) of a certain component by a simple stupid text like "BLA", then my report looks like this. This is correct (even if "BLA" is stupid here...). The label "Eingegangen" is below the label "Sonstiges":
a screenhot of the rendered report the way it should be (besides "BLA")
a screenhot of the rendered report the way it should be (besides "BLA")
Shifting_Correct.png (16.84 KiB) Viewed 6112 times
This is the field whose content I have changed from a formula to "BLA":
a screenshot of the report in the designer showing the component that seems to create the problem
a screenshot of the report in the designer showing the component that seems to create the problem
Schifting_Report_Screenshot.png (113.96 KiB) Viewed 6112 times
The formula was : {IIF(Buchung.BuchungExterneBemerkungen != "", Buchung.BuchungSummeSonstiges, null)}
It seems that if the formular returns null or "" or " " then the problems occurs...

I have attached the report and hope you can tell me what's wrong, because I have another one that is more complicated where I have the same kind of problems...

Further: I could swear, that these things worked a few weeks ago... If have tested this with 2014.1.1809 and 2014.1.1811.

Hoping for a quick answer as always, since this is really creating troubles here... :-/

Cheers,
Pascal

Re: Problem with ShiftingMode

Posted: Wed Feb 19, 2014 3:45 pm
by PJoyeux
Here another problem that looks very similar...

Wrong ouput: Two labels overlapping and the blue-databand should show much more data, but is overlapped by the green databand which is situated in an own panel:
Shifting_Problem2.png
Shifting_Problem2.png (63.42 KiB) Viewed 6110 times
This is a screenshot of the designer:
Shifting_Problem3.png
Shifting_Problem3.png (76.48 KiB) Viewed 6110 times
I have attached the report. The problem is on the 2nd Page.

I really hope you can help me with those reports...

Cheers,
Pascal

Re: Problem with ShiftingMode

Posted: Thu Feb 20, 2014 12:32 pm
by HighAley
Hello.

If you use Shift Mode property, then all components will be shifted if one of components higher was shrunk.
Using Panels for each group of components will help you to avoid this issue.

Thank you.

Re: Problem with ShiftingMode

Posted: Thu Feb 20, 2014 1:24 pm
by PJoyeux
Hi,

in my second example (my second post) I already do use panels, and this doesn't help... I can try using panels in the first example though...

Could you be so kind as to alter my second report (the 2nd Page) the way you think it must be in order to work? Thank you very much in advance!

Cheers,
Pascal

Re: Problem with ShiftingMode

Posted: Thu Feb 20, 2014 1:56 pm
by PJoyeux
Ok...

I think I found the problem. Many of my components were not placed on a band but instead directly on the page like this (the components in the red squares):
Bild 5.png
Bild 5.png (79.05 KiB) Viewed 6095 times
Now I have put them in a band too:
Bild 6.png
Bild 6.png (92.24 KiB) Viewed 6095 times
And the shifting works:
Bild 7.png
Bild 7.png (38.64 KiB) Viewed 6095 times
It's a bad habit of mine to not use bands when I know I have only ONE record... :lol:

Thanks for your patience, this report works now and I will try adding panels to the other one (the first post in this thread).

Cheers,
Pascal

Re: Problem with ShiftingMode

Posted: Thu Feb 20, 2014 5:22 pm
by PJoyeux
Well, I still have an issue with shifting... When a component situated above another is disabled using conditions, then the following component does not shift upwards...

In this report the Panel that contains DataBand3 and the label on its left have a condition that set the property "enabled" to false:
Bild 9.png
Bild 9.png (62.56 KiB) Viewed 6092 times
Then the report looks like this at runtime:
Bild 10.png
Bild 10.png (23.95 KiB) Viewed 6092 times
I was expecting the panel containing DataBand6 to shift upwards to close the gap. I have set the "CanShrink"-Property of all components within the first panel and have set the ShiftingMode of the second Panel to "Increasing Size" and "Decreasing Size" bus still the gap is not closed.

I have attached the report again, it is the second page.

I hope you can tell me where the problem is...

Cheers,
Pascal

Re: Problem with ShiftingMode

Posted: Fri Feb 21, 2014 2:14 pm
by HighAley
Hello.

You shouldn't hide Panel2 using conditions. Use this Condition on the Data Band.
If the component is disabled, the components under it will not go up. The component should be shrunk.

Thank you.

Re: Problem with ShiftingMode

Posted: Mon Feb 24, 2014 3:08 pm
by PJoyeux
Aleksey Andreyanov wrote:You shouldn't hide Panel2 using conditions. Use this Condition on the Data Band.
Aah, ok... Thank you, I was able to achieve what I want.

Cheers,
Pascal

Re: Problem with ShiftingMode

Posted: Tue Feb 25, 2014 7:38 am
by HighAley
Hello.

Good. Let us know if you need any additional help.

Thank you.