Hi all,
I just found some weird thing today. So I just create an Even Handler class to check a field during modification, to not having other character than numeric.
So I created a new class (copy the Event Handler On Modified for that particular field) and put the validation like this :
testStr = TEST_Line_ds.object(fieldNum(TEST_Line, MyReference)).getValue();
if (testStr != strrem(stralpha(testStr), '0123456789'))
{
warning("New reference should contains numeric only");
}
It is working, when I input some alphabet, warning message appeared and there is a red line surrounding the field with Red Warning Sign just in the right corner and doesn't allow to save.
So I remove the alphabet and now it can saved. Oddly, the red line and the warning sign still there, and I have to move to other line (record) and go back just to make it disappeared.
Am I missing something ?
Thanks