Customizing the error message
When you define a validation rule, PowerBuilder automatically
creates the error message that displays by default when users enter
an invalid value:
|
1 |
'Item ~'' + @Col + '~' does not pass validation test.' |
You can edit the string expression to create a custom error
message.
Different syntax in the DataWindow
painter
If you are working in the DataWindow painter, you can enter a
string expression for the message, but you do not use the @ sign for
placeholders. For example, this is the default message:
|
1 |
'Item ~'' + ColumnName + '~' does not pass validation test.' |
A validation rule for the Salary column in the Employee table
might have the following custom error message associated with
it:
|
1 |
Please enter a salary greater than $10,000. |
If users enter a salary less than or equal to $10,000, the
custom error message displays.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest