2008 Feb 29 7:45 PM
I have logic in a table event that enforces some parameters on entries in a table maintenance view. For example, two fields cannot be equal. I have the logic for this working, however I am not sure the best approach to display a message to the user and FORCE them to change before continue. If i use say i001 or w001 for info or warning, it will properly display the message, but still save the record. If i use say e001, it will stop the save, but kick the user back out of the maint. screen. Any ideas?
I have logic in a table event that enforces some parameters on entries in a table maintenance view. For example, two fields cannot be equal. I have the logic for this working, however I am not sure the best approach to display a message to the user and FORCE them to change before continue. If i use say i001 or w001 for info or warning, it will properly display the message, but still save the record. If i use say e001, it will stop the save, but kick the user back out of the maint. screen. Any ideas?
2008 Feb 29 7:57 PM
You can try using the edition DISPLAY LIKE 'E' after the mesage raise.
2008 Feb 29 8:06 PM
I get "The selected function is not supported" when i run. Compiles fine though.
2008 Feb 29 8:17 PM
Update:
I can get the error to display then, but it still saves the record.
2008 Feb 29 8:49 PM
after the information message use "EXIT" statement. it will come out without saving..
2008 Feb 29 8:55 PM
2008 Feb 29 9:02 PM
try using some statements like "leave to screen 0"
leave screen... etc..
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |