pralash
19th January 2018, 14:47
Hi,
I have created a proper hook in my DAL script in order to validate a particular field value (tcemp103.mar1)... Here the validation is executed successfully with proper error message as shown in the attachment... But I want to display the validation error message as a message dialog box.... So can you please assist me that how to display the error message as a message box like in visual basic....
My DAL script is as follows....
|******************************************************************************
|* tcemp103 0 VRC B61C a cust
|* DAL for Student
|* baan
|* 18-01-10 [17:32]
|******************************************************************************
|* Script Type: DAL
|******************************************************************************
table ttcemp103 |
#include <bic_dal2>
|A property hook programmed
function extern long tcemp103.mar1.check(long has_changed)
{
if (tcemp103.mar1 >100 or tcemp103.mar1<0) then
dal.set.info.message("@%1s","Range between 1 to 100")
show.dal.messages(MSG.INFO)
return(DALHOOKERROR)
endif
return(0)
}
Can you please find the attachment and also please let me know about how to display the validation error message as a message dialog box....
Thanks in advance....
Regards,
Pralash
I have created a proper hook in my DAL script in order to validate a particular field value (tcemp103.mar1)... Here the validation is executed successfully with proper error message as shown in the attachment... But I want to display the validation error message as a message dialog box.... So can you please assist me that how to display the error message as a message box like in visual basic....
My DAL script is as follows....
|******************************************************************************
|* tcemp103 0 VRC B61C a cust
|* DAL for Student
|* baan
|* 18-01-10 [17:32]
|******************************************************************************
|* Script Type: DAL
|******************************************************************************
table ttcemp103 |
#include <bic_dal2>
|A property hook programmed
function extern long tcemp103.mar1.check(long has_changed)
{
if (tcemp103.mar1 >100 or tcemp103.mar1<0) then
dal.set.info.message("@%1s","Range between 1 to 100")
show.dal.messages(MSG.INFO)
return(DALHOOKERROR)
endif
return(0)
}
Can you please find the attachment and also please let me know about how to display the validation error message as a message dialog box....
Thanks in advance....
Regards,
Pralash