VPME 9.1 FIX: Value in grid control not written to buffer if focus not moved off control
Applies to: VPM Enterprise 9.1, VPM Enterprise 9.1.01, VPM Enterprise 9.1.02
Symptoms: On a grid based on the Grid_Toolbar class where the field bound to the current control is
empty and is a required field, entering a value and saving the record without first moving the focus
off the control causes a message to be displayed. The message states that an entry is required in
the field. Note: This problem only occurs when testing a form in VPME and does not occur when
running a form in your application.
Resolution: Make the following change to the Init event of the Grid_Toolbar class in VPMCtrls.vcx.
Change:
IF _SCREEN.oApp.cAppPre == 'APP'
ThisForm.AddObject('cmdGridFocus','App_GridFocus')
ELSE
ThisForm.AddObject('cmdGridFocus','GridFocus')
ENDIF
To:
IF _SCREEN.oApp.cAppPre == 'APP'
SET CLASSLIB TO progen ADDITIVE
ThisForm.AddObject('cmdGridFocus','GridFocus')
RELEASE CLASSLIB progen
ELSE
ThisForm.AddObject('cmdGridFocus','GridFocus')
ENDIF