Open ebruchez opened 7 years ago
+1 from customer as this creates unnecessary calls to services, in particular for the autocomplete control.
There is also the question of data permissions:
CheckWithoutDataUserPessimistic()
(as of 2023-04)This particular issue can be solved by securely forwarding data permissions between mode changes.
A number of existing issues are caused by the fact that the
edit
andview
modes show two different pages, and navigating between the two loses state:We also have a +1 from customer for keeping the state of a custom instance.
What could we do to fix this? Currently, changing mode causes an internal HTTP POST via the
tryChangeMode
function. We passform-version
anddata-format-version
. We also passfr-noscript
,fr-language
andorbeon-embeddable
as needed.The reason we do a POST is that in effect, the
view
mode is exactly the same form as theedit
mode, but with "static readonly" controls and the instance marked as readonly.Now say we do not use an internal POST to change mode: what is the alternative? Staying with the same XForms document, and:
readonly-appearance
to change dynamically (it is only used by the handlers)new
toedit
)fr-form-group
Can we see any drawback to this besides the implementation effort?