Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread EDB 2.03 Build 7 - problem with new records - not showed
Fri, Jan 15 2010 5:58 AMPermanent Link

"Mauro Botta"
Hi

I have update , now , EDB from 2.03 B5 to 2.03 B7

and i have a strange big problem.

i have a tabled RANGED in standard Delphi dbgrid.

press :

1)  Insert key   ( new row appear )
2) Enter "xxx" value in any field
3) press "Return" key

when press Return key , the new row record disappear ^^"

if i retry 5 times this operation , i can't see these 5 records in my
dbgrid.

But this record are present in Table ( i can see these with edb Manger )

if i close and reopen my program i can see ALL record.

but the problem is all present if i add new record.

-----------------------------------
Delphi 2010 UPD 5 + EDB 2.07
Fri, Jan 15 2010 6:03 AMPermanent Link

"Mauro Botta"
Update


if i start with a Empty table  ( Table with any records but when i range it
, zero record is valid ) , all work well

but..

if i start with a FULL table  ( Table with any records, when i range it , it
have any records valid ) , The bug is present.
Fri, Jan 15 2010 8:06 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mauro


If I understand it correctly you have a query using RANGE, you've asked for a sensitive result set and you're inserting new records. It also sound as though the dbgrid is posting the record as soon as you press enter to finish editing any cell.

If I'm correct my guess would be that either the new record fails to match the WHERE clause in the query or it falls outside of the range you've specified.

Sensitive result sets act like a table with a filter set and if you add a record that doesn't match the filter it "disappears"

Roy Lambert [Team Elevate]
Fri, Jan 15 2010 8:44 AMPermanent Link

"Mauro Botta"
i don't use Query.

only one TEDBTable component.
Fri, Jan 15 2010 8:47 AMPermanent Link

"Mauro Botta"
Update 2


I have this problem in much Master Detail forms of my big application (
always TEDBTable + range )

i have recompiled it with old EDB 2.03 B5 and all work fine Smile
Fri, Jan 15 2010 9:38 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mauro

>i don't use Query.
>
>only one TEDBTable component.

OK but the same principle would apply. Do the records you are inserting meet the criteria in the range?

Roy Lambert [Team Elevate]
Fri, Jan 15 2010 9:59 AMPermanent Link

"Mauro Botta"
> OK but the same principle would apply. Do the records you are inserting
> meet the criteria in the range?

yes ofcourse Smile



if i close and reopen , form , these new records are visible.

p.s.

With EDB B2.03 B5 is all ok.
Fri, Jan 15 2010 12:47 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Mauro


Over to Tim then.

Roy Lambert
Fri, Jan 15 2010 2:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mauro,

<< if i start with a Empty table  ( Table with any records but when i range
it , zero record is valid ) , all work well

but..

if i start with a FULL table  ( Table with any records, when i range it ,
it have any records valid ) , The bug is present.  >>

Can you please send me an example of what you're seeing
(timyoung@elevatesoft.com) ?

Thanks,

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Jan 15 2010 3:41 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mauro,

Never mind, I've reproduced it.  It's the optimization added to B7 for
dealing with filters that only select a few rows out of many.  It's
interfering with the ranges.

The workaround is to call CancelRange/SetRange to correct the range, but
I'll have a fix out shortly for this.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image