Not sure if i am doing something wrong, or if i need to add something
i have a edit grid and i tried to use the external validation program..
when the validation is succesfull i recieve a success:true and all is ok
however when validation should return an error, the screen remains at 'creating record'
although i see in the console the success:false;??
am i missing something?, or is this a bug
i have a edit grid and i tried to use the external validation program..
when the validation is succesfull i recieve a success:true and all is ok
however when validation should return an error, the screen remains at 'creating record'
although i see in the console the success:false;??
am i missing something?, or is this a bug
PHP Code:
//*************************************************************************
DCL-PROC PROCESSPOSTADD;
//*************************************************************************
dcl-s lCtabpr char(25);
lCtabpr = GetValue('OBPRAL': 'CTABPR');
if (%len(%trim(lCtabPr)) < 16);
SendError('CostCombination must have 16 characters');
Endif;
Monitor;
Qn016 = %dec(lCtabPr: 16: 0);
on-error;
SendError('CostCombination may contain only numbers and must a length 16');
Endmon;
END-PROC;
Comment