Hello everyone, I am trying to use triggers to validate the information that is captured on the cards, and I use the postgres function "Raise exception" to generate an error and stop the capture of the information. I would like to know if it is possible to use CMDBuild's built-in popup messages, to alert users that certain errors have happened.
Thanks and greetings to all.
This is done automatically by the CMDBuild GUI if in the Postgres exception you use the following syntax:
"RAISE EXCEPTION 'CM_CUSTOM_EXCEPTION: My custom error message';"
(all in the same line and if present by doubling the quotes).
CMDBuild Team
1 Like
Previously Tecnoteca wrote:
This is done automatically by the CMDBuild GUI if in the Postgres exception you use the following syntax:
"RAISE EXCEPTION 'CM_CUSTOM_EXCEPTION: My custom error message';"
(all in the same line and if present by doubling the quotes).
CMDBuild Team
Excellent, Thanks!!!
Regards.