We would like to set some model attributes depending on some other situations in the model. We already know that such a attribute set can be achieved by JavaScript. But we like to get this automated.
Event "Model will be saved" is raised
-> Java Script will be called
----> Java Script validates model situation
-------> Java Script updates attributes
The question now is: Can I raise a Java Script call right when I save a model? Is this possible?
Best Regards, Volker
Stefan Geis on
Volker,
AFAIK this can be done. Once you have the script ready, you configure it as described in this article; the most important points:
"You activate the macro by choosing “Available to users”.
To view or to change when the macro should be started automatically, select „Event” and „Select event…” in the “Context” property page of the macro."
hth