Iterating a section which contains another section.

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

Iterating a section which contains another section.

akmishra
Iterate feature doesn't seems to work with section which contains another
section.
I am creating form using nested section i.e. section with in section.
And need to have a section repeated with their nested chained section.
Refer the structure given below to see.

Please guide me If I am doing something wrong.


<fr:section id="a">
<fn:grid ..>
  <fn:c ..>

  </fn:c>
</fn:grid ..>
<fr:section id="a">
<fn:grid ..>
  <fn:c ..>

  </fn:c>
</fn:grid ..>
</fr:section>
</fr:section>

Thanks,
AK

--
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].
Reply | Threaded
Open this post in threaded view
|

Re: Iterating a section which contains another section.

Alessandro  Vernet
Administrator
Hi AK,

Is this situation something you ended up having by using Form Builder? If
not, then that you're "doing wrong" is using the `fr:section` outside of
Form Builder, which it isn't designed to support.

-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: Iterating a section which contains another section.

akmishra
Hi Alex,

I am using form builder to created nested section compliant to structure as
given below.

                      <document-event>
                                <event-name/>
                                <date-time/>
                                <status-set-to/>
                                <transform>
                                    <type/>
                                    <parameter/>
                                    <transformed/>
                                </transform>
                       </document-event>

Where <document-event> treated as first section and <transform> as
subsection.
Repeat setting enable for the section with document-event through control
setting.
When I click the lower arrow button to get its repeated, It doesn't work.

Respect xform code is given below.

      <fr:section id="document-event-section" bind="document-event-bind">
                            <xf:label
ref="$form-resources/document-events/document-event/label"/>
                            <fr:grid columns="3" id="grid-2-grid">
                                <fr:c y="1" x="1" w="3">
                                    <xf:input bind="event-name-bind"
id="event-name-control">
                                        <xf:label
ref="$form-resources/document-events/document-event/event-name/label"/>
                                        <xf:hint
ref="$form-resources/document-events/document-event/event-name/hint"/>
                                    </xf:input>
                                </fr:c>
                                <fr:c y="2" x="1" w="3">
                                    <xf:input bind="date-time-bind"
id="date-time-control">
                                        <xf:label
ref="$form-resources/document-events/document-event/date-time/label"/>
                                        <xf:hint
ref="$form-resources/document-events/document-event/date-time/hint"/>
                                    </xf:input>
                                </fr:c>
                                <fr:c y="3" x="1" w="3">
                                    <xf:input bind="status-set-to-bind"
id="status-set-to-control">
                                        <xf:label
ref="$form-resources/document-events/document-event/status-set-to/label"/>
                                        <xf:hint
ref="$form-resources/document-events/document-event/status-set-to/hint"/>
                                    </xf:input>
                                </fr:c>
                            </fr:grid>
                            <fr:section id="transform-section"
bind="transform-bind">
                                <xf:label
ref="$form-resources/document-events/document-event/transform/label"/>
                                <fr:grid columns="3" id="grid-6-grid">
                                    <fr:c y="1" x="1" w="3">
                                        <xf:input bind="type-bind"
id="type-control">
                                            <xf:label
ref="$form-resources/document-events/document-event/transform/type/label"/>
                                            <xf:hint
ref="$form-resources/document-events/document-event/transform/type/hint"/>
                                        </xf:input>
                                    </fr:c>
                                    <fr:c y="2" x="1" w="3">
                                        <xf:input bind="parameter-bind"
id="parameter-control">
                                            <xf:label
ref="$form-resources/document-events/document-event/transform/parameter/label"/>
                                            <xf:hint
ref="$form-resources/document-events/document-event/transform/parameter/hint"/>
                                        </xf:input>
                                    </fr:c>
                                    <fr:c y="3" x="1" w="3">
                                        <xf:input bind="transformed-bind"
id="transformed-control">
                                            <xf:label
ref="$form-resources/document-events/document-event/transform/transformed/label"/>
                                            <xf:hint
ref="$form-resources/document-events/document-event/transform/transformed/hint"/>
                                        </xf:input>
                                    </fr:c>
                                </fr:grid>
                            </fr:section>


Is there any alternative approach that I need to see or there is some way
through which I can get this through section.

Thanks,
AK







--
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].