Subject Re: [IBO] FieldsDisplayLabel
Author guido.klapperich@t-online.de
Hi Geoff

Is it possible to implement this feature in your IB_Label-Component ? In
my App I'm using your old FieldDisplayLabel very often and I want to
switch to IB_Label next time. The problem I have, is that, when my app
starts I'm doing a lot of initializiations before the Queries are prepared
and one thing I need, is the DisplayLabel of a field.
Please tell me, what you think.


Guido.

Geoff Worboys wrote:

> > Exists a way to receive the values of FieldsDisplayLabel
> > before a Dataset is prepared ?
>
> That depends. If your FieldsDisplayLabel entries are all defined by
> fieldname (not by domainname or SQLType) and you know the fieldname
> then you can do something like...
>
> Result := dataset.FieldsDisplayLabel.LinkValues[ 'field_name' ];
> // if not defined at dataset, check connection
> if Result = '' then
> Result := connection.FieldsDisplayLabel.LinkValues[ 'field_name' ];
>
> If you use domainnames in your Fields* properties then you must either
> wait for the dataset to be prepared (to find out the domain) or - if
> you know the domainname - you can pass that instead of the fieldname.
>
> HTH
>
> Geoff Worboys
> Telesis Computing