Run Application View Source Code

Orbeon Forms Apps

Orbeon Forms Source Code Viewer

Loading...
An error has occurred

You may want to try one of the following:

  • Close this dialog and continue to use this page.
  • Reload this page. Note that you will lose any unsaved changes.
  • If the above does not work, try reloading the page yourself. Note that you will lose any unsaved changes:

    • With Firefox and Safari: hold down the shift key and click the Reload button in your browser toolbar.
    • With Internet Explorer: hold down the control key and click the Reload button in your browser toolbar.
  • Return home.
Help
View as text View as text View as formatted XML View as formatted XML Download Download
common/persistence-model.xml 4,935
common/resources-model.xml 1,986
common/resources_en.xml 2,871
common/resources_fr.xml 2,945
detail/detail-view.xhtml 14,656
detail/parameters.xml 727
detail/pdf-detail-view.xpl 1,641
forms/DMV-14/documents/document-1.xml 2,139
forms/DMV-14/documents/document-2.xml 2,880
forms/DMV-14/documents/document-3.xml 2,144
forms/DMV-14/documents/document-4.xml 2,450
forms/DMV-14/documents/document-5.xml 2,109
forms/DMV-14/dmv14.pdf 45,730
forms/DMV-14/model.xml 8,013
forms/DMV-14/pdf-model.xml 4,575
forms/DMV-14/resources_en.xml 5,477
forms/DMV-14/resources_fr.xml 5,635
forms/DMV-14/schema.xsd 12,626
forms/DMV-14/summary-query.xml 3,190
forms/DMV-14/template-form.xml 1,876
forms/DMV-14/template-mailing-address.xml 857
forms/DMV-14/template-vehicle-address.xml 837
forms/DMV-14/view.xml 37,821
forms/G-325A/documents/document-1.xml 3,420
forms/G-325A/documents/document-2.xml 4,089
forms/G-325A/g-325a.pdf 383,033
forms/G-325A/model.xml 3,546
forms/G-325A/pdf-model-new.xml 8,918
forms/G-325A/pdf-model.xml 7,604
forms/G-325A/resources_en.xml 4,289
forms/G-325A/resources_fr.xml 4,370
forms/G-325A/schema.xsd 7,699
forms/G-325A/summary-query.xml 3,125
forms/G-325A/template-employment.xml 93
forms/G-325A/template-form.xml 2,226
forms/G-325A/template-residence.xml 138
forms/G-325A/template-spouse.xml 215
forms/G-325A/view.xml 39,293
services/import-documents.xpl 2,932
summary/parameters.xml 707
summary/summary-view.xhtml 21,688
page-flow.xml 2,804
style.css 4,973
$xforms-template-label$
<!--
    Copyright (C) 2006 Orbeon, Inc.

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.

    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<xforms:model id="persistence-model"
              xmlns:xs="http://www.w3.org/2001/XMLSchema"
              xmlns:xforms="http://www.w3.org/2002/xforms"
              xmlns:ev="http://www.w3.org/2001/xml-events"
              xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
              xmlns:xi="http://www.w3.org/2001/XInclude"
              xmlns:dmv="http://orbeon.org/oxf/examples/dmv"
              xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
              xmlns:f="http://orbeon.org/oxf/xml/formatting"
              xmlns:exist="http://exist.sourceforge.net/NS/exist">

    <xforms:setvalue ev:event="xforms-submit-error" ref="xxforms:instance('control-instance')/error" value="event('response-body')"/>

    <xforms:submission id="import-documents-submission" serialization="none"
                       method="get" action="/forms/service/import-documents" replace="none"/>

    <xforms:instance id="list-documents-query">
        <exist:query/>
    </xforms:instance>

    <xforms:instance id="search-instance">
        <search xmlns=""/>
    </xforms:instance>

    <xforms:submission id="list-documents-submission" ref="instance('list-documents-query')"
                       method="post" action="/exist/rest/db/orbeon/forms/?search={{instance('search-instance')}}"
                       replace="instance" xxforms:instance="documents-instance" f:url-type="resource" xxforms:readonly="true">
        <xforms:message ev:event="xforms-submit-error" value="event('document-body')"/>
    </xforms:submission>

    <xforms:submission id="delete-document-submission" serialization="none" method="delete" replace="none" f:url-type="resource"
                       action="/exist/rest/db/orbeon/forms/{{xxforms:instance('parameters-instance')/form-id}}/{{xxforms:instance('documents-instance')/documents/document[index('documents-repeat')]/id}}"/>

    <!-- Load submission -->
    <xforms:submission id="load-submission" serialization="none"
            action="/exist/rest/db/orbeon/forms/{{xxforms:instance('parameters-instance')/form-id}}/{{xxforms:instance('parameters-instance')/document-id}}" validate="false"
            method="get" replace="instance" xxforms:instance="document-instance" f:url-type="resource"/>

    <xforms:instance id="persistence-instance">
        <save>
            <message/>
            <save-status/>
        </save>
    </xforms:instance>

    <!-- Save submission -->
    <xforms:submission id="save-submission" ref="xxforms:instance('document-instance')"
            action="/exist/rest/db/orbeon/forms/{{xxforms:instance('parameters-instance')/form-id}}/{{xxforms:instance('parameters-instance')/document-id}}"
            method="put" replace="none" f:url-type="resource">

        <xforms:setvalue ev:event="xforms-submit-serialize" ref="instance('persistence-instance')/save-status">validated</xforms:setvalue>
        <xforms:action ev:event="xforms-submit-done">
            <xforms:setvalue ref="instance('persistence-instance')/message" value="xxforms:instance('resources-instance')/detail/messages/save-success"/>
            <xforms:setvalue ref="xxforms:instance('control-instance')/data-status"/>
            <xforms:setvalue ref="instance('persistence-instance')/save-status"/>
            <xforms:toggle case="ok-message"/>
        </xforms:action>
        <xforms:action ev:event="xforms-submit-error">
            <xforms:action if="not(instance('persistence-instance')/save-status = 'validated')">
                <xforms:setvalue ref="instance('persistence-instance')/message"
                                 value="xxforms:instance('resources-instance')/detail/messages/save-error-form"/>
                <xforms:toggle case="validation-error-message"/>
            </xforms:action>
            <xforms:action if="instance('persistence-instance')/save-status = 'validated'">
                <xforms:setvalue ref="instance('persistence-instance')/message"
                                value="xxforms:instance('resources-instance')/detail/messages/save-error-submission"/>
                <xforms:toggle case="fatal-error-message"/>
            </xforms:action>

            <xforms:setvalue ref="instance('persistence-instance')/save-status"/>
        </xforms:action>
    </xforms:submission>

</xforms:model>

Orbeon Forms 3.7.0beta1.200808260135