Back to SPR List Previous Next
PQLForms EDITIN on first field won't move off the field when exiting record
Minor Closed - Fixed Found:XS.01.07 16 JAN 2008 Fixed:XS.01.08 21 JAN 2008

DETAILS
 This simple pqlform has an EDITIN clause on the first record field. It displays a
 warning message if EDUC is > 3
 The problem is that when you try to move off that field after the warning message is
 OKed it will reset focus back to that field and then ask you again. and again... (you
 can get away using alt+n , alt+x etc)
EXAMPLE PROGRAM
        EDITIN (
        EDUC = NUMBR(FIELDIN);
        IFTHEN (EDUC GT 3);
        FAILMESS = 'Are you sure?';
        FAILFLD  = 1;
        ENDIF
        )
WORKAROUND
test if the value has changed before doing the warning: EDITIN ( IFTHEN (EDUC NE NUMBR(FIELDIN)); EDUC = NUMBR(FIELDIN); IFTHEN (EDUC GT 3); FAILMESS = 'Are you sure?'; FAILFLD = 1; ENDIF; ENDIF )
Back to SPR List Previous Next