Re: DMV-14 form question
Posted by
Alexander Žaťko on
Dec 10, 2009; 3:58pm
URL: https://discuss.orbeon.com/DMV-14-form-question-tp957046p957106.html
Try to change the instance with id="vehicle-template" in the forms/
DMV-14/model.xml file from:
<!-- Template for the vehicle details -->
<xforms:instance id="vehicle-template" xxforms:readonly="true">
<vehicle xmlns="
http://orbeon.org/oxf/examples/dmv">
<plate-number/>
<vin/>
<leased/>
</vehicle>
</xforms:instance>
...to:
<!-- Template for the vehicle details -->
<xforms:instance id="vehicle-template" xxforms:readonly="true" />
Maybe you will need some dummy root in the instance like:
<xforms:instance id="vehicle-template" xxforms:readonly="true">
<placeholder/>
</xforms:instance>
The idea is to have no record in the instance collecting the user data
when the form is initiated.
A.
On Dec 10, 2009, at 4:08 PM, <
[hidden email]> wrote:
> Hello everyone,
> First of all, I would like to say 'thank you' to Orbeon for
> developing such great web forms. I need an urgent help. It is a
> production
> requirement, so I would really appreciate if someone can help me
> real quick
> here. In the demo form DMV-14, under the section "Vehicles, Vessels,
> or
> Placards Owned By You ", you can notice that one row is displayed
> automatically
> in the table when the page displays for the first time. Is there any
> way I can
> change that behavior to "no" rows getting displayed when the form
> loads. I
> should still be able to Add/Remove items. Please let me know if
> there is any
> way to achieve this. I am quite new to XForms and Orbeon, so I would
> really
> appreciate some help here. Please let me know if you have any
> questions.
>
> Sincerely,
> Pratik
>
> --
> You receive this message as a subscriber of the
[hidden email]
> mailing list.
> To unsubscribe: mailto:
[hidden email]
> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing lists service home page:
http://www.ow2.org/wws--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws