Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error Message display in Table Maint. View without Closing

Former Member
0 Likes
973

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?

6 REPLIES 6
Read only

Former Member
0 Likes
934

You can try using the edition DISPLAY LIKE 'E' after the mesage raise.

Read only

0 Likes
934

I get "The selected function is not supported" when i run. Compiles fine though.

Read only

0 Likes
934

Update:

I can get the error to display then, but it still saves the record.

Read only

Former Member
0 Likes
934

after the information message use "EXIT" statement. it will come out without saving..

Read only

0 Likes
934

If i use

MESSAGE ... blah...

EXIT.

It still saves.

Read only

0 Likes
934

try using some statements like "leave to screen 0"

leave screen... etc..