How to get document id of form definition ?

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

How to get document id of form definition ?

bpmf
I want an ID of form definition. I noticed that there is a document id in  form builder's edit URL  after saving. I think maybe it's possible tho save that  document ID to form definition. I  added a document ID column to the orbeon_form_definition table, and changed the crud.xpl.  As a result, no values are filled into that column. It seems there's no document ID in the request when publish a form definition.
     In crud.xpl,  I commented out some "is-data" checking like this:
   <!--<xsl:if test="$is-data">-->
                    <sql:param type="xs:string" select="/request/document-id"/>,
    <!--</xsl:if>-->


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

Re: How to get document id of form definition ?

Erik Bruchez
Administrator
The latest publish dialog adds a URL parameter with the document id:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/builder/form/dialog-publish.xml#L238

However I just noticed that this is not propagated all the way to the
persistence layer implementation. I have committed a fix for that.

https://github.com/orbeon/orbeon-forms/commit/453b57e429d51604f22a96a1f6bd0657d25d2e93

With 3.9 (if you are using that) you can try to modify the publish
dialog to append the parameter.

-Eik

On Mon, Jun 4, 2012 at 11:27 PM, bpmf <[hidden email]> wrote:

> I want an ID of form definition. I noticed that there is a document id in
> form builder's edit URL  after saving. I think maybe it's possible tho save
> that  document ID to form definition. I  added a document ID column to the
> orbeon_form_definition table, and changed the crud.xpl.  As a result, no
> values are filled into that column. It seems there's no document ID in the
> request when publish a form definition.
>      In crud.xpl,  I commented out some "is-data" checking like this:
>    <!--<xsl:if test="$is-data">-->
>                     <sql:param type="xs:string"
> select="/request/document-id"/>,
>     <!--</xsl:if>-->
>
>
> --
> 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