on 01-05-2015 3:12 PM
Hello,
I have a question about the after modify script.
When does he get triggered?
When I change a value in the related BO, the script is not triggered, even if I push the enter key.
My target goal is to implement logic dynamicaly in the BO. If I select value X in field A then field B automaticaly gets the value Y.
Best regards,
Benjamin
When you change a value of a field and press enter, and when you create an instance. You can also play with the "SyncDataContainer" UI operation (can be called in an event handler) and the "Requires RoundTrip" property of any data field.
I don't recall now other scenarios.
Pay attention if you are triggering the correct script, e.g. from the root or subnode.
Many thanks.
Fernando
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Benjamin,
You are right that you should put the script on the root (header) of the BO if you want the script to evaluate on a change/save on the root (header).
As for getting the script to work correctly, I would try to get it to work on save and then move it to after modify so at least your script is correct.
Rei
Hello Benjamin,
Technically spoken a script for a specific node gets triggered only when there is a difference between the data of this node sent to the UI and returned from the UI.
So, you need
If any of these topics are not fullfilled (wrong node, no round-trip until Save) the script will not be triggered.
HTH,
Horst
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.