0

I have two frames in one frame and they are oriented horizontally(next to each other). I want to move the second field to the left, when the left field is empty or null. I have tried out using float but that was only helpful when I wanted to move fields to the top. How can I do this?

<frame>
                <reportElement x="290" y="5" width="264" height="160" uuid="2aacd59b-b477-4572-b231-6d29cf887f97"/>
                <frame>
                    <reportElement positionType="Float" stretchType="ElementGroupHeight" x="1" y="25" width="119" height="133" uuid="21ba2ca3-2900-40e1-ba58-ddc11f4cf8da">
                        <printWhenExpression><![CDATA[$P{delivery} != ""]]></printWhenExpression>
                    </reportElement>
                    <staticText>
                        <reportElement positionType="Float" x="4" y="3" width="111" height="15" uuid="3e64c3c1-3bc9-4538-98d2-94d9073c2f34"/>
                        <textElement>
                            <font size="12" isBold="true"/>
                        </textElement>
                        <text><![CDATA[Lieferung]]></text>
                    </staticText>
                    <textField textAdjust="StretchHeight">
                        <reportElement positionType="Float" x="5" y="20" width="110" height="108" uuid="60b5ee6a-7062-4183-a668-13e623485e74"/>
                        <textFieldExpression><![CDATA[$P{delivery}]]></textFieldExpression>
                    </textField>
                </frame>
                <frame>
                    <reportElement positionType="Float" x="134" y="20" width="130" height="135" uuid="655f7c7e-fde3-4940-89e1-ed3f08fd9fcc"/>
                    <staticText>
                        <reportElement positionType="Float" x="8" y="8" width="111" height="15" uuid="1b6add6d-f2a1-4d53-993a-fef36f219c18"/>
                        <textElement>
                            <font size="12" isBold="true"/>
                        </textElement>
                        <text><![CDATA[Zahlung]]></text>
                    </staticText>
                    <textField>
                        <reportElement positionType="Float" x="10" y="27" width="108" height="108" uuid="65fb42bb-8f4b-4f46-b9e2-f5eb29eedd94"/>
                        <textFieldExpression><![CDATA[$P{payment}]]></textFieldExpression>
                    </textField>
                </frame>
            </frame>

0 Answers0