New blog post: Allowing users to view form data if they can't edit it because of a lease

9 views
Skip to first unread message

Alessandro Vernet

unread,
Jul 17, 2020, 3:21:10 PM7/17/20
to orb...@googlegroups.com
https://blog.orbeon.com/2020/07/allowing-users-to-view-form-data-if.html

Enjoy,

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

Jarosław Kowalewski

unread,
Jul 17, 2020, 4:46:03 PM7/17/20
to orb...@googlegroups.com
Hi,
great news. 
Just to confirm. Actions also are NOT triggered in a view mode? Not sure if you know about it but in a  lease mode, even you don't have rights to edit, actions are triggered. I mean version 2018.2.4 for sure. The workaround is to change it="true()" to if="fr:owns-lease-or-none-required()" for actions that are triggered 'always' when form is loaded. 

//Jarek

--
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 orbeon+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1595013665526-0.post%40n4.nabble.com.

Alessandro Vernet

unread,
Jul 17, 2020, 8:26:45 PM7/17/20
to orb...@googlegroups.com
Hi Jarek,

Yes, services & actions shouldn't run when you are trying to edit form data
and are unable to do so because someone else has the lease on that form
data. This is a known issue; see issue #4262. However, services & actions
should still run when you are viewing form data, as they might be needed for
instance to populate some fields. Is that last part also a problem for you?

https://github.com/orbeon/orbeon-forms/issues/4262
Reply all
Reply to author
Forward
0 new messages