If you have a switch / check box, you can force a save on change. If the BO has mandatory fields then the save on change will create a cascade of errors.
If you want to use the switch change as an input (for example to an operation on a peer reference) you need the BO to save in order to get the value of the switch to pass to your operation. Catch 22.
Use a business rule to instead change an attribute on a session variables BO instead. The session variables BO is in context all of the time.
Fake a Save - Switches & Save on Change
-
- Posts: 1473
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya