Re: New Era Question
Posted in 1996
Topics: Clustering, Grid & MACH11
Dirk Gunsthoevel wrote: > > Hi there > > <New Era 2.2, Win 3.1/95> > > Right now I discovered a silly inconsistent behavior in our New Era > Programs. > Under some circumstances I cannot define exactly the gettext() or > getcellvalue() member functions of an ixSuperField dont return the > proper values input and shown on the screen. > > These functions are called in the focusOut() or userValidateData() > events and then (sometimes) return old values the SuperField had before. > Also, the acceptRow() Handler cannot access the right values... in the > end > illegeal values can be stored in the table because of that. > > Any ideas what the reason could be? > > Thanks, > Dirk Dirk, One thing I have found with NEWERA is that the last and first cells in a grid form don't work properly. If you enter data into the last cell of a grid and hit tab or enter or down arrow, the screen acts as if the data has been accepted, but it really isn't. As for the first cell, enter data and hit shift tab or up arrow, again, the data is not saved if you hit the save key. I got around this by creating my own sub-class of superfield and placed code in the cellKeyPress event to detect and correct these problems. Also if data is entered and the user clicks out of the field, it is left visible in the cell but not accepted. You may want to add code for that too. It's the little things that make life interesting... Bret.