Problem with ShiftingMode
Problem with ShiftingMode
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...) 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": This is the field whose content I have changed from a formula to "BLA": 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
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...) 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": This is the field whose content I have changed from a formula to "BLA": 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
- Attachments
-
- Schifting_Report.mrt
- The report itself
- (50.73 KiB) Downloaded 457 times
Re: Problem with ShiftingMode
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: This is a screenshot of the designer: I have attached the report. The problem is on the 2nd Page.
I really hope you can help me with those reports...
Cheers,
Pascal
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: This is a screenshot of the designer: I have attached the report. The problem is on the 2nd Page.
I really hope you can help me with those reports...
Cheers,
Pascal
- Attachments
-
- Fahrauftrag.mrt
- (69.94 KiB) Downloaded 414 times
Re: Problem with ShiftingMode
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.
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
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
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
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): Now I have put them in a band too: And the shifting works: It's a bad habit of mine to not use bands when I know I have only ONE record...
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
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): Now I have put them in a band too: And the shifting works: It's a bad habit of mine to not use bands when I know I have only ONE record...

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
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: Then the report looks like this at runtime: 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
In this report the Panel that contains DataBand3 and the label on its left have a condition that set the property "enabled" to false: Then the report looks like this at runtime: 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
- Attachments
-
- Fahrauftrag.mrt
- (100.7 KiB) Downloaded 404 times
Re: Problem with ShiftingMode
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.
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
Aah, ok... Thank you, I was able to achieve what I want.Aleksey Andreyanov wrote:You shouldn't hide Panel2 using conditions. Use this Condition on the Data Band.
Cheers,
Pascal
Re: Problem with ShiftingMode
Hello.
Good. Let us know if you need any additional help.
Thank you.
Good. Let us know if you need any additional help.
Thank you.