GemStone Persistence Layer: form definition version number

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

GemStone Persistence Layer: form definition version number

bruno.buzzi
Alex/Erik,

Most issues have been fixed. :)

The last issue i have for now is when publishing a form.

When click "Publish" a form it show none of previous version (although there are several versions of that form) as it was a new form form scratch.

Researching of this right now...

reards,
bruno
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GemStone Persistence Layer: form definition version number

bruno.buzzi
Hi,

No quite sure but i think this issue is related to:
https://doc.orbeon.com/form-runner/api/persistence/forms-metadata.html#returning-all-form-definition-versions

In the orbeon.log when click on "Publish":
2016-12-07 18:32:56,911 DEBUG XFormsServer  - opening URL connection {method: "GET", URL: "http://localhost:8080/orbeon/fr/service/persistence/form/ue/applicant-home-office-report?all-versions=true", Cookie: "JSESSIONID=F00140FD74253EA80C4022B3836665AC", Orbeon-Token: "890bd22639a4765a268b0553ee0e0b88fbbe8256"}

(minutes after)

Ok, i got it.

The 2016.2.2 version need a new REST path:
/form/app-name/form-name?all-versions=aBoolean

This is missing in my current implementation :(

After implementing this i will post the results here...

regards,
bruno
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GemStone Persistence Layer: form definition version number

bruno.buzzi
Hi,

Fixed after implementing the following REST path:
<get>
<produces: 'application/xml'>
<path: '/form/{app}/{form-name}?all-versions={aBoolean}'>

The XML structure is described here:
https://doc.orbeon.com/form-runner/api/persistence/forms-metadata.html#returning-all-form-definition-versions

Regards,
Bruno
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GemStone Persistence Layer: form definition version number

Alessandro  Vernet
Administrator
Hi Bruno,

Perfect, I'm glad supporting the all-versions=true|false fixed the issue.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Loading...