Hi,
Imagine the following use case:
An employee can submit a holiday request. Subsequently he can still see his request but no longer modify it.
A way to implement this is JSpresso is to program in Java a condition on the save action, isn’t it? But this is not a user-friendly solution: The employee, who would still try to modify his submitted holiday request, would only get an error at the moment he is trying to save his changes.
It is more user-friendly to immediately indicate to the employee that his holiday request is read-only (in its current state).
Can we achieve this with JSpresso?
Or might it be a good candidate for a feature request?
Perhaps we need a new concept: the possibility to define multiple views on an entity and defining which view applies by means of some mapping criteria: user on one hand and the properties of the entity on the other hand. Multiple views would also allow to define other actions per view: We could also indicate that certain actions are not allowed: we could hide the action or gray it out (also better than giving an error message only when the action is pushed upon).
Thanks for your thoughts,
Marc

...