How-To Add Application Message (SyteLine)
To add a primary key invalid message to SyteLine Messaging you first create the error message on a form for a duplicate key. (Example)Then you will see the primary key name message that created the error. This key will be used in the Maintain Application Message Objects form.
Open the "Maintain Application Message Objects" form and add a new record. Enter the Primary key from the error message that was created from your duplicate key entry on your new form. (Example)
Enter the text message that you want returned to the user in the Message Text.
Enter the Message Number ( the key here is to make the message unique to your organization). After you have entered the Message Num Right Click on the Message Num dropdown and select Add.
In The "Maintain Application Messages" Form Enter the Message Number you created and the Message Text that you want the user to see when the error occurs. (Example)
Save the "Maintain Application Messages" record and close the "Maintain Application Messages" form.
Back at the "Maintain Application Messages Objects " Form.
Enter a message description.
Select the Message Type from the dropdown (17 Constraint Message).
Select the Object Type (in this case it is from a Table).
Leave the Message Severity as 16.
Save the record.
(Example)
Add Sequence Number 1 to the Build Messages group and save the record again.
At this point the error message should appear when the Primary key constraint occurs on your entry form..
No comments:
Post a Comment