Sample Scenario 8: Voting for Various Choices
In this scenario, you need several managers at the same level to approve an engineering change, by means of a response to a message. So, you must send a notification that prompts the managers for a response. If at least two of the managers send responses approving the change, you then approve the requested change in the application.
For this scenario:
-
Assume that global constants are created for EngineeringMgr, ProjectMgr, and ProgramMgr.
The creation of global constants is described in previous scenarios.
- Use the IdoOnItemInsert framework event.
To accomplish this scenario:
You can also do a second test by clicking the Engineering Change Notices form, the ECN record displays normally but your changes are gone.
button to reject the request by all three managers. In this case, when you refresh theWhen creating this event handler, keep these points in mind:
- When creating a message that requires a response from the recipient, usually a Prompt action type, you must mark the handler so that it suspends when executed. This means that it is also automatically marked as a synchronous handler.
- Because these event handlers must be suspended, pending the managers' responses, the Framework Event Service must be enabled for the configuration in which you are logged on.