Get previous versions of a form data instance, not the last one

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

Get previous versions of a form data instance, not the last one

r.pecori
This post was updated on .
Hi,

I am running Orbeon Forms 4.0.0.rc1.201302120214 PE with development licence.

I am showing orbeon forms in the Liferay form runner portlet and I need to get the url to show a particular data form instance, that is, not the last one but one with a certain document_id and a certain last_modified_date (the couple is the primary key of the orben table orbeon_form_data).

In the URI that I can see the only passable parameters are application_name, form_name and document_id. Like this URI:
http://localhost:8080/web/guest/<lifery_page_name>?p_p_id=orbeonformsportlet_WAR_orbeon_INSTANCE_X4pBQCOIkVDy&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_orbeonformsportlet_WAR_orbeon_INSTANCE_X4pBQCOIkVDy_orbeon.path=%2Ffr%2F<application_name>%2F<form_name>%2Fedit%2F<document_id>

Is there the possibility to pass also the last_modified date to the URI so to get not only the last modified version but also previous ones?. They are stored in the DB but how can I retrieve their data and show them in a form runner portlet?
Reply | Threaded
Open this post in threaded view
|

Re: Get previous versions of a form data instance, not the last one

Alessandro  Vernet
Administrator
Hi,

You can't, at least not without changing Form Runner. At this point, there is no versioning implemented in Form Runner, and only the implementations of the persistence API for relational databases (Oracle and MySQL) keep track of the change history. So at this point, this is more useful for auditing or to manually undo a mistake then for versioning.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Get previous versions of a form data instance, not the last one

r.pecori
Has been there a change in Form Runner in version 4.3 so to get also previous versions of a form in form runner or  is the situation always the same?

thank you
Reply | Threaded
Open this post in threaded view
|

Re: Get previous versions of a form data instance, not the last one

Erik Bruchez
Administrator
No change in this respect in 4.3.

We have an RFE for versioning:

https://github.com/orbeon/orbeon-forms/issues/1157

-Erik

On Thu, Sep 12, 2013 at 8:40 AM, r.pecori <[hidden email]> wrote:

> Has been there a change in Form Runner in version 4.3 so to get also previous
> versions of a form in form runner or  is the situation always the same?
>
> thank you
>
> --
> View this message in context: http://discuss.orbeon.com/Get-previous-versions-of-a-form-data-instance-not-the-last-one-tp4656889p4657306.html
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].