Library section as repeatable in a Form Instances

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Library section as repeatable in a Form Instances

bruno.buzzi
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Library section as repeatable in a Form Instances

Alessandro  Vernet
Administrator
Hi Bruno,

Are you saying that you get the second case by defining a section as
repeatable in the library, and then including it in a form?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Library section as repeatable in a Form Instances

Alessandro  Vernet
Administrator
Bruno, I tried to reproduce this on 2017.2, but marking the section as
repeated in the library has no effect, and when doing so in the host form, I
get the expected structure: `my-section/my-section-iteration`, assuming that
the section was named `my-section` in the host form. So I'll need more info
to be able to reproduce this one.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Library section as repeatable in a Form Instances

bruno.buzzi
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Library section as repeatable in a Form Instances

bruno.buzzi
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Library section as repeatable in a Form Instances

Alessandro  Vernet
Administrator
Hi Bruno,

With Orbeon Forms 2017.2, taking the 3 forms you provided, adding them to
Form Builder, publishing them, going to `/fr/test/test/new` adding items to
the first 2 repeated sections, and saving, I get the following in MySQL:

<form xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
fr:data-format-version="4.0.0">
    <section-1>
        <section-1-iteration>
            <command>a1</command>
        </section-1-iteration>
        <section-1-iteration>
            <command>a2</command>
        </section-1-iteration>
    </section-1>
    <section-5>
        <section-5-iteration>
            <section-2-iteration>
                <users>b1</users>
            </section-2-iteration>
        </section-5-iteration>
        <section-5-iteration>
            <section-2-iteration>
                <users>b2</users>
            </section-2-iteration>
        </section-5-iteration>
    </section-5>
    <section-4>
        <formId/>
    </section-4>
    <section-3>
        <phone/>
        <address/>
    </section-3>
    <section-2>
        <name/>
        <surname/>
    </section-2>
</form>

This looks right to me. Are you seeing something different? Should I follow
different steps to reproduce the issue you're seeing?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Library section as repeatable in a Form Instances

bruno.buzzi
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Library section as repeatable in a Form Instances

Alessandro  Vernet
Administrator
Hi Bruno,

Yes! Apparently my eyes must not have been quite open when I wrote that
message :). I've created a bug (linked below), and we'll look into it. But
for now, you can just avoid this by not marking the section as repeated in
the library, correct? Or is there more to it?

https://github.com/orbeon/orbeon-forms/issues/3504

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet