Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for jr:count in groups #259

Open
GoogleCodeExporter opened this issue Jul 23, 2015 · 0 comments
Open

add support for jr:count in groups #259

GoogleCodeExporter opened this issue Jul 23, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

add option for a group to repeat n times. 

the trick here is that the count value can be based on a previous node. it'd be 
useful to let people pick that node, or specify a custom value. 

<instance>
    <data>
        <repeat_count_a>2</repeat_count_a>
        <repeat_node_a>
            <repeat_string_a/>
        </repeat_node_a>
    </data>
</instance>


<bind nodeset="/data/repeat_count_a" type="integer"/>
<bind nodeset="/data/repeat_node_a"/>
<bind nodeset="/data/repeat_node_a/repeat_string_a" type="string"/>


<group>
    <label>repeat node a</label>
    <repeat nodeset="/data/repeat_node_a" jr:count="/data/repeat_count_a">
        <input ref="/data/repeat_node_a/repeat_string_a">
            <label>this should repeat <output value="/data/repeat_count_a"/> times and finish</label>
        </input>
    </repeat>
</group>

Original issue reported on code.google.com by yanokwa on 11 Jul 2011 at 7:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant