Subject | Re: [IBO] "Default" Value for a Field |
---|---|
Author | Lucas Franzen |
Post date | 2004-07-13T13:03:18Z |
Daniel,
Daniel Albuschat schrieb:
click on the field in question and enter your default value in the
DefaultValue edit.
If you like, you can do this also in the code (DefauktValues is just a
TIB_StringList property).
If you use domains and want automatically have default values for cerain
domains set these properteis of your TIB_Connection:
FieldEntryTypes.fetDomainNames = TRUE
DefaultValues: YOUR_DOMAIN=DEFAULT_VALUE
for example:
MY_LASTNAME=Albuschat
MY_FIRSTNAME=Daniel
;-)
HTH
Luc.
Daniel Albuschat schrieb:
> Hello,[snipped an advanced way of shooting oneself in the foot]
> Is there another way to do this without the drawbackOpen the QueryEditor, go to the FieldProperties TAB, prepare the query,
> mentioned above?
click on the field in question and enter your default value in the
DefaultValue edit.
If you like, you can do this also in the code (DefauktValues is just a
TIB_StringList property).
If you use domains and want automatically have default values for cerain
domains set these properteis of your TIB_Connection:
FieldEntryTypes.fetDomainNames = TRUE
DefaultValues: YOUR_DOMAIN=DEFAULT_VALUE
for example:
MY_LASTNAME=Albuschat
MY_FIRSTNAME=Daniel
;-)
HTH
Luc.