Subject | Accessing & Adding Fields at runtime |
---|---|
Author | Rob Schuff |
Post date | 2002-11-27T23:32:14Z |
hi folks,
I have created a component that contains a TIBOQuery. There is no
design-time creation of TFields. I'd don't need persistent fields but I do
need to deal with some issues and I'm asking what event to hook into/surface
to accomplish the following:
1. Define a calculated field and code the OnCalsFieldsEvent
2. Access the fields to set some of the tfield properties such as
displayLabel etc.
and lastly
3. I need the embedded query to not instantiate fields of type
TIBOFloatField but instead use the normal TFloatField.
Seems like the afterprepare is the place to do it.
Any suggestions greatly appreciated!
rob
I have created a component that contains a TIBOQuery. There is no
design-time creation of TFields. I'd don't need persistent fields but I do
need to deal with some issues and I'm asking what event to hook into/surface
to accomplish the following:
1. Define a calculated field and code the OnCalsFieldsEvent
2. Access the fields to set some of the tfield properties such as
displayLabel etc.
and lastly
3. I need the embedded query to not instantiate fields of type
TIBOFloatField but instead use the normal TFloatField.
Seems like the afterprepare is the place to do it.
Any suggestions greatly appreciated!
rob