hi friends,
i am a biginner in axapta.
i would like to show an error message on date field if i entered date greater than system date.
anybody please help me to do this.
Regards,
nice johny
*This post is locked for comments
hi friends,
i am a biginner in axapta.
i would like to show an error message on date field if i entered date greater than system date.
anybody please help me to do this.
Regards,
nice johny
*This post is locked for comments
Sorry,I'll try to make my questions perfect.
Anyway i got the answer for my question, I used validate Field() method.
Thanks for your help.
Regard,
Nice Johny
Sorry, you mentioned that you're writing a validation, but I didn't know that the validation part is unlear too. The only question given was "How to show an error message".
There is no single answer for the validation - you can use table's validateField() method, or validateWrite() if you want to show the message when saving the record, or FormControl.validate for unbound field, RunBase.validate() for RunBase dialogs and so on...
Hello Martin
Thanks for your support. actually i asked for not only to show an error message, and also for to validate my entry. now i got the answer.
anyway once again i am thanking you. i expect more help for me to go ahead.
Regards ,
Nice Johny
To show a message in infolog, use methods error(), warning() and info() - e.g. error("Something is wrong") or warning("@SYS116847"). You may also need strFmt() to format the string.
If you want to throw an exception, simply put "throw" before error(), e.g. throw error("@SYS84785").
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156