Subject | RES: [IBO] Boolean in ColumnAttr ibutes don´t work |
---|---|
Author | Luiz |
Post date | 2015-04-01T11:06:46Z |
Hi,
I had seen this problem. When upgrading, some old forms done in Delphi 2007. IBO 4.8 with Boolean fields was been upgraded to IBO 5.5,XE7 and some settings were lost.
In 4.8 I had
Fieldname=Boolean=S,N
But in 5.5 I had Fieldname=Boolean=S,
The ‘N’ was lost.
I have to fix manually
Luiz
De: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Enviada em: sexta-feira, 27 de março de 2015 11:06
Para: IBObjects@yahoogroups.com
Assunto: [IBO] Boolean in ColumnAttributes don´t work
Hello
I have a problem after upgrading IBObjects from 4.8 to 5.5:
The new version doesn´t find the Boolean-Values in the ColumnAttributes if the query has an alias-name. The checkboxes for this specific fields don´t work.
The Query-Editor writes the following string into the columnsAttributes property
Alias.FIELDNAME=BOOLEAN=J,N
but this doesn´t work
after a manual change to
FIELDNAME=BOOLEAN=J,N
the checkboxes are working again
Perhaps this code helps to find the problem
aCol:=qryBest.fieldbyname('be.GEMEINKOSTEN');
Showmessage(aCol.AttributeParams[ IBO_BOOLEAN ]);
Showmessage(aCol.BooleanTrue);
the first line shows: J,N
the second: T ??? here is the error
from the dfm
object qryBest: TIB_Query
ColumnAttributes.Strings = (
'be.GEMEINKOSTEN=BOOLEAN='#39'J,N'#39)
after changing the dfm to this
object qryBest: TIB_Query
ColumnAttributes.Strings = (
'GEMEINKOSTEN=BOOLEAN='#39'J,N'#39)
the code from above shows J,N and J
Thanks
Oliver