Persistence Layer: usage all-versions and all-forms

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

Persistence Layer: usage all-versions and all-forms

bruno.buzzi
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Persistence Layer: usage all-versions and all-forms

Alessandro  Vernet
Administrator
Hi Bruno,

I am not sure to follow. How specifically would you want the Form Runner
home page to behave differently?

At this point:

- As far as permissions, if the user is an admin, then the home page shows
all forms (`all-forms=true` behavior); otherwise it only shows the forms the
user has access to.
- As far as versioning and the Form Runner home page, we have a few
improvements in mind, for instance, when publishing, to better control what
version you publish to, maybe like you can when publishing from Form Builder
(https://github.com/orbeon/orbeon-forms/issues/1451), and just showing
version information (https://github.com/orbeon/orbeon-forms/issues/3448).

‑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].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1562357582578-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Persistence Layer: usage all-versions and all-forms

bruno.buzzi
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Persistence Layer: usage all-versions and all-forms

Alessandro  Vernet
Administrator
Hi Bruno,

Got it, so here is what I can find:

- `all-forms`, defaults to `false`: The default is useful if you want to
show the forms the current user has access to, for instance to build a list
with links to `/new` or `/summary` for each form. Setting it to `true` is
useful if you want to really see all the published forms, including
libraries, unavailable forms, and also without taking permissions into
account. The Form Runner home page uses both of those, depending on whether
you're an admin or not.

https://doc.orbeon.com/form-runner/api/persistence/forms-metadata#returning-all-form-definitions

- `all-versions`, defaults to `false`: The Form Runner home page currently
doesn't do much with versioning, so uses the default. But everywhere you
care to who about the different versions of a form you have published, then
you would want to set this parameter to `true`. For instance, you'll want to
use `true` in summary pages, where we now have a drop-down to select the
form version. Also, `true`  would be used in Form Builder, when publishing a
form, to populate the dropdown allowing you to select an existing version of
a form you might want to override.

https://doc.orbeon.com/form-runner/api/persistence/forms-metadata#returning-all-form-definition-versions

You'll let me know if this helps.

‑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].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1562864494481-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet