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

JaapJD
19th January 2018, 15:59
Use Interactive Message Mode. In session select Tools>Options.

pralash
22nd January 2018, 07:36
Hi,

As you suggested, I have selected the interactive message mode from the "options" in Tools menu... Even I got the previous result only. So can you please tell me is there any other methods for display the error validation message as a message box...

Thanks in advance...
Regards,
Pralash

v_kewl
12th February 2018, 10:46
trying using show.dal.message or dal.peek.error.message with mess() in UI script.

Regards,
Gaurav