Reload and publish dinamically all forms

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

Reload and publish dinamically all forms

inigo10rodri
Hello,

We have an orbeon/libary form with section templates and more than 100 forms
that use those section templates. What we want to know is whether, in some
way, it is possible to reload the toolbox and dynamically publish all the
forms that contain that section template. Instead of reloading form by form
and publishing.

If possible, what would be the way to do it?

Thanks in advance,
Iñigo

--
Sent from: http://discuss.orbeon.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].
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

Alessandro  Vernet
Administrator
Hi Iñigo,

I think the "Upgrade local form definitions" feature, which you can access
from the Form Runner home page in admin mode, is what you're looking for
here. You'll let me know if this works for you.

https://doc.orbeon.com/form-runner/features/home-page#upgrading-form-definitions

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

inigo10rodri
Hi Alessandro,

It's works fine, but only when I do a simple change, for example, change the
label name of a control or add a calculated value.
But if I want to add a new control in my section template and I do "Upgrade
local form definitions" from the Form Runner home page it doesn't upload the
new control added in my Liferay portlet. I see that maybe the problem is
that it's not possible to do a structural change. So, if so, the only way to
do this is to publish the form inside the Form Builder to get the new
structure of the section template?

Thanks in advance,
Iñigo

--
Sent from: http://discuss.orbeon.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].
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

Alessandro  Vernet
Administrator
Hi Iñigo,

Are you saying that the new control you added doesn't show when editing
existing data that was created before the control was added? If so, what you
would need for this is a new feature introduced in 2018.2 that we call
"simple data migration". It should work for the case of the added control
you mentioned, but note that this is a PE-only feature. See:

https://doc.orbeon.com/form-runner/features/versioning#simple-data-migration

I hope that the fact that is is PE-only isn't too much of a show blocker for
you!

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

inigo10rodri
Hi Alessandro,

Yes, when I want to access the new form and see the new control added in my
section template, it doesn´t appears. Actually we use the 2017.2 version of
Orbeon so this option isn´t possible.
We need a way to upgrade the forms that contain the section template with
the new control in Form Runner that recharge the section template and
publish the form to see the new changes. It is possible or another way in
the 2017.2 version?

Thanks,
Iñigo.

--
Sent from: http://discuss.orbeon.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].
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

Alessandro  Vernet
Administrator
Hi Iñigo,

Just to make sure we're on the same page, what I'm talking about:

1. Isn't specifically related to using section templates; this would also be
the case if a control was added to the form definition itself.
2. Is about having a new control show in the form when editing form data
created with an earlier version of the form definition when that control
wasn't yet part of the form definition.

With this in mind, before 2018.2 PE (or with Orbeon Forms CE, since "simple
data migration" is a PE feature), there was no way to do this automatically.
You would have to write code to update existing data in your database and
add the element that corresponds to the control you added. Are my
assumptions above correct, and if so, does this make sense?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

Alessandro  Vernet
Administrator
Hi Iñigo, if this is still on your plate, is writing code that updates the
elements at the database level (or even upgrading to 2018.2 PE!), an option
for you?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

inigo10rodri
Hi Alessandro,

Sorry for the delay, it´s an option to upgrade our Orbeon to 2018.2 PE.
Because, we consider that is the best way to do it and we couldn´t do it by
code.

Thanks,
Iñigo.

--
Sent from: http://discuss.orbeon.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].
Reply | Threaded
Open this post in threaded view
|

Re: Reload and publish dinamically all forms

Alessandro  Vernet
Administrator
Excellent Iñigo, thank you for the update, and I'm glad that you were able
(or will be able) to upgrade to 2018.2 PE, and thus benefit from this
"simple data migration" feature.

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.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].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet