--- Eric van der Vlist <[EMAIL PROTECTED]> wrote:

> In page-flow.xml:
> 
>     <page id="apiculteur" path-info="/apiculteurs/apiculteur/([^/]*)/"
> matcher="oxf:perl5-matcher"
>         xforms="xforms-model.xml" model="apiculteur.xpl"
> view="apiculteur-view.xsl">
>         <param ref="/form/document-id"/>
>     </page>
> ...
>    <page id="nouveau" path-info="/apiculteurs/nouveau"
> xforms="xforms-model.xml"
>         view="xforms-view.xsl">
>         <action
>             when="/form/action = 'save' and
> not(/form/document//[EMAIL PROTECTED]:valid = 'false' and
> not(ancestor-or-self::[EMAIL PROTECTED]:relevant = 'false'])]) "
>             action="save-new-document.xpl">
>             <result page="apiculteur"/>
>         </action>
> [...]

Eric, inside the above <result page="apiculteur"/> you should use XUpdate
to set /form/document-id on the target XForms instance. Then as
/form/document-id comes from the URL in the target page, and the XForms
instance is otherwise empty, the PFC will generate a nice URL
/apiculteurs/apiculteur/your-doc-id/. Let us know how if this works for
you.

Alex


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to