Skip to content

How to change the value of the grid dynamically? 🙏 #508

Answered by pgundlach
Cicorione asked this question in Q&A
Discussion options

You must be logged in to vote

You can do something like this:

data.xml:

<data gridx="4" gridy="5" />

Layout:

<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">
    <Trace grid="yes" />
    <Record element="data">
        <SetGrid nx="{@gridx}" ny="{@gridy}" />
        <PlaceObject>
            <Textblock>
                <Paragraph>
                    <Value>aaaa</Value>
                </Paragraph>
            </Textblock>
        </PlaceObject>
    </Record>
</Layout>

or if you need a switch case statement:

<data gridtype="4x5" />

and

<Layout xmlns="urn:speedata.de:2009/publisher/en"
    xmlns:sd="urn:speedata:2009/publisher/functions/en">
    <Trace grid="yes"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Cicorione
Comment options

Answer selected by Cicorione
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants