Subject | Re: [firebird-support] Defaults and Delphi 6.0 |
---|---|
Author | Fabrizio Lozada |
Post date | 2005-09-02T00:15:07Z |
I'm agree you must switch to TIBQuery but if you want
to persist on using the table component, define each
field on the table component and switch the property
AutoGenerated Value to arDefault for each field which
has a default
--- joseph_ceasar <joseph_ceasar@...> escribió:
---------------------------------
I created a new table and set default values for
certain fields.
When I edit the table using IBOCONSOLE, as soon as I
add a new
record, the fields for which default values are
defined, are
populated with the default values. So far so good.
Now I go to Delphi and create a small test app. I am
using the IB
componets that came with D6 (at least I think they
came with D6). I
use a IBDatabase, an IBTable and a regular datasource
component to
access the data. I then drop in a DBGrid and link
everything
together. When I insert a new rec in the grid, the
default values
don't show up. I even tried other data aware
components and I still
don't get thos default values to show up. What am I
doing wrong?
Thank you
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://firebird.sourceforge.net and click the
Resources item
on the main (top) menu. Try Knowledgebase and FAQ
links !
Also search the knowledgebases at
http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "firebird-support" on the web.
To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
---------------------------------
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.yahoo.com.mx/
to persist on using the table component, define each
field on the table component and switch the property
AutoGenerated Value to arDefault for each field which
has a default
--- joseph_ceasar <joseph_ceasar@...> escribió:
---------------------------------
I created a new table and set default values for
certain fields.
When I edit the table using IBOCONSOLE, as soon as I
add a new
record, the fields for which default values are
defined, are
populated with the default values. So far so good.
Now I go to Delphi and create a small test app. I am
using the IB
componets that came with D6 (at least I think they
came with D6). I
use a IBDatabase, an IBTable and a regular datasource
component to
access the data. I then drop in a DBGrid and link
everything
together. When I insert a new rec in the grid, the
default values
don't show up. I even tried other data aware
components and I still
don't get thos default values to show up. What am I
doing wrong?
Thank you
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Visit http://firebird.sourceforge.net and click the
Resources item
on the main (top) menu. Try Knowledgebase and FAQ
links !
Also search the knowledgebases at
http://www.ibphoenix.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "firebird-support" on the web.
To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
---------------------------------
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.yahoo.com.mx/