Discussion:
field's default and grid
(too old to reply)
mark.i
2004-02-21 16:08:07 UTC
Permalink
when appending a row in a grid, using down arrow key, the
field's default value is not transferring, and the field
remains empty/null.

Mark.Istitene
Ken Mayer [dBASE, Inc.]
2004-02-21 22:46:44 UTC
Permalink
Post by mark.i
when appending a row in a grid, using down arrow key, the
field's default value is not transferring, and the field
remains empty/null.
Please provide more details, a turnkey is useful if you can ...

Ken
---
Ken Mayer [dBASE, Inc.]
** Please respond ONLY in the newsgroups **

"Think OOP"

dBASE, Inc. website: http://www.dbase.com
mark.i
2004-02-22 09:45:55 UTC
Permalink
Please find below the requested turnkey.

The turnkey uses the fish table in dbasesamples database,
but before you test the code below you should set the
default for the 'Length CM' field to 0.

This bug is only present when you set the cacheUpdates to
true. Whilst testing this code, I also noticed the 'ID'
field, which is an autoincrement field, shows zero when
cacheupdate is set to true and empty field when set to
false.

Removing the "cacheUpdates = true" line will allow default
values.

I hope the info amd turnkey are sufficient for your test.


Mark.i

**** Please copy/paste code below ****

** END HEADER -- do not remove this line
//
// Generated on 22/02/2004
//
class fishdmDATAMODULE of DATAMODULE
with (this)
left = -1.0
top = -1.0
endwith

this.DBASESAMPLES1 = new DATABASE()
this.DBASESAMPLES1.parent = this
with (this.DBASESAMPLES1)
left = 19.0
top = 135.0
cacheUpdates = true
databaseName = "dBASESamples"
active = true
endwith

this.FISH1 = new QUERY()
this.FISH1.parent = this
with (this.FISH1)
left = 294.0
top = 89.0
width = 114.0
height = 127.0
database = form.dbasesamples1
sql = 'Select * from "fish"'
active = true
endwith

endclass
Ken Mayer [dBASE, Inc.]
2004-02-23 15:42:20 UTC
Permalink
Post by mark.i
Please find below the requested turnkey.
Turnkey? There's a datamodule. That's not a turnkey.
Post by mark.i
The turnkey uses the fish table in dbasesamples database,
but before you test the code below you should set the
default for the 'Length CM' field to 0.
Rather than modify my sample tables, I created a new table, with a
character field, a numeric field, and another character field. I set
the numeric field's default to zero.

I have an existing database for the test folder, so I opened that, and
dragged the test table to the design surface.

For the database object, I set the cacheUpdates property to true.
Added a grid, datalinked the test table to it,
ran the form ...

I can see the problem. (This is the kind of thing I need for a bug
report -- step-by-step ...)

I have entered QAID: 4714 for this.

Ken
---
Ken Mayer [dBASE, Inc.]
** Please respond ONLY in the newsgroups **

"Think OOP"

dBASE, Inc. website: http://www.dbase.com
mark.i
2004-02-23 18:31:35 UTC
Permalink
Post by Ken Mayer [dBASE, Inc.]
I can see the problem. (This is the kind of thing I need
for a bug
Post by Ken Mayer [dBASE, Inc.]
report -- step-by-step ...)
I'm always very happy to help and report bugs whenever
possible, but I can't spend my time writing a user guide on
how to track a bug in your software each time I detect a
bug.

It takes quite sometimes, hours and even days, before we
realise it might be a bug that's causing our
program/application to misbehave. So, it isn't as though it
takes few seconds to discover, but we're absolutely witless
by the time we discover it is a bug.

I've provided a turnkey with instructions to help you
re-create the problem.

Although I understand you have to sift through quite a lot
of messages and try to understand the meaning of what has
been reported by many users. I do, however, think it is a
bit much to ask for instructions to be written in a syntax
of your choice.
Post by Ken Mayer [dBASE, Inc.]
I have entered QAID: 4714 for this.
Thanks for entering a QAID


Mark.i

Loading...