Hi group,
At our side, we solve these problem with a system wide validation process
defined on all SBfields which check if mandatory fields sequentially defined
before the current field are empty.
If one is found it output a error message and exit with @RTN.FLAG =
{mandatoryfield} else it execute the validation expression for the current
field.
I'm ok with you, this is a trick that SB+ can do.
My two pence.
Manu
*--
For info :
@MAINFILE is the current datafile
@LINE1,18 is the current fieldname
@LINE1,1 is the current AMC value ; if negative this is a @WORK field
(ABS(@LINE1,1) is the AMC of @WORK
@CNT the current mv value
@PROC.NAMEx is the process names ... check 1,2,3,... until you found Readv
XXPROCESS1 = 'I' ; this is the input-process-defn
Read PROC.DEFN then
PROC.DEFN5 is the DICT.FILE where 'INPUT.DEFN' reside
PROC.DEFN6 is the DICT.FILE KEY of input.defn of the current screen
Read INPUT.DEFN FROM 'DICT ': PROC.DEFN5, PROC.DEFN6
Then LOCATE(@LINE1,18,INPUT.DEFN,15;POS)
Then check all field sequentially before the current
FOR I = 1 TO RG -1
IF INPUT.DEFN22,I = 'Y' THEN
Read field.defn from DICT.FILE,INUT.DEFN15,I
If field.defn2,1 0 then check @WORK else check @RECORD
IF field.defn2,2 0 then mv'ed else am'ed
Then check if the value is empty or not
If yes, output a error, rtn.flag = INPUT.DEFN15,I
END
NEXT I
-Message d'origine-
De : u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
boun...@listserver.u2ug.org] De la part de Israel, John R.
Envoyé : vendredi 24 septembre 2010 21:04
À : u2-users@listserver.u2ug.org
Objet : [U2] SB Client - Disable TAB
This may be old news to most folks, but we have found that if a user
navigates through a GUI SB+ screen and uses their mouse to click on an
input, none of the logic tied to the prior inputs are run. This includes
being able to skip right past mandatory fields.
For example, a screen has 5 required inputs followed by 5 non-required
inputs. If the user is in input 2 and uses their mouse to click into
input 8, SB allows this to happen and the required fields and any
associated logic tied to inputs 2 through 7 are ignored.
This appears to be a huge SB bug. Sure we could fix it for a specific
screen, but that does nothing for the hundreds (or thousands) of other
screens.
Does anyone have a realistic solution to this condition?
John Israel
Senior Programmer/Analyst
Dayton Superior Corporation
1125 Byers Road
Miamisburg, OH 45342
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users