Orbeon 4 - Repeat Grid - Default value

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

Orbeon 4 - Repeat Grid - Default value

inanda.menezes
Is it possible to set xf:default value for a element inside a repeat grid?

I tried the following way but it did not work out:

   <xf:bind xmlns:dataModel="java:org.orbeon.oxf.fb.DataModel" id="fr-form-binds"
                     ref="instance('fr-form-instance')">
                <xf:bind id="section-1-bind" name="section-1" ref="section-1">
                    <xf:bind id="control-1-bind" name="control-1" ref="control-1"/>
                    <xf:bind id="grid-3-bind" ref="grid-3" name="grid-3">
                        <xf:bind id="control-4-bind" ref="control-4" name="control-4" xxf:default="test"
                                 required="true()"/>
                    </xf:bind>
                </xf:bind>
            </xf:bind>

Tested in Form Builder version: 4.0.1.201303152357 PE
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon 4 - Repeat Grid - Default value

Erik Bruchez
Administrator
If you mean so that new iteration get the default value, no, that
doesn't work right now: `xxf:default` only applies once on a given
instance. I can see why you would like it to work in that case too of
course.

-Erik

On Fri, Aug 16, 2013 at 10:12 AM, inanda.menezes <[hidden email]> wrote:

> Is it possible to set xf:default value for a element inside a repeat grid?
>
> I tried the following way but it did not work out:
>
>    <xf:bind xmlns:dataModel="java:org.orbeon.oxf.fb.DataModel"
> id="fr-form-binds"
>                      ref="instance('fr-form-instance')">
>                 <xf:bind id="section-1-bind" name="section-1"
> ref="section-1">
>                     <xf:bind id="control-1-bind" name="control-1"
> ref="control-1"/>
>                     <xf:bind id="grid-3-bind" ref="grid-3" name="grid-3">
>                         <xf:bind id="control-4-bind" ref="control-4"
> name="control-4" xxf:default="test"
>                                  required="true()"/>
>                     </xf:bind>
>                 </xf:bind>
>             </xf:bind>
>
> Tested in Form Builder version: 4.0.1.201303152357 PE
>
> --
> View this message in context: http://discuss.orbeon.com/Orbeon-4-Repeat-Grid-Default-value-tp4657177.html
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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].

--
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: Orbeon 4 - Repeat Grid - Default value

Erik Bruchez
Administrator