Subject Re: [IBO] TIB_Text question
Author Helen Borrie
At 03:36 PM 8/10/2004 +1000, you wrote:

>Hi,
>
>
>
>A very simple question if I may.
>
>
>
>I am trying to use the data aware components of IB Objects, but I am
>obviously going about it the wrong way, as I am not getting the effect I am
>after.
>
>
>
>Now the problem is as follows. I have created a DataModule, which contains:
>
> IB_Connection
>
> IB_Transaction
>
> IB_Query
>
> IB_DataSource
>
>
>
>(**)In the IB_Query I have used the "Field Properties - Display Label" to
>change the label of the fields to a more "Human acceptable format".

DisplayLabel sets the text of the label you want at the head of the column,
when the field is displayed in a grid.


>In the application there exists a Form which contains the data-aware
>components such as IB_Edit and IB_Text components. I have set the
>"DataSource" property of the IB_Text component to point to the IB_Query
>component I have also set the "DataField" property.

The Datasource property should point to a TIB_Datasource.


> However once the IB_Connection and IB_Query is toggle to "live", the
>IB_Text components display the "data" within the field of the table in the
>DB rather that the preset Field Name(**) or just the Field name.

That is what data-aware components do - they display data. You willl see
the column name in a data-aware control in the IDE until the underlying
dataset is prepared; then you will see the a blank field if the dataset is
not active, or the data if it is active.

Helen