Subject | Field Properties, Column Attribute - Question |
---|---|
Author | Daniel Jimenez |
Post date | 2004-10-13T03:35:53Z |
Hi,
I am currently using a TIB_Cursor in combination with a TIB_CursorGrid.
I have tried to set the "FieldProperty" as well as the "ColumnAttributes" a
number of different ways, but they are not behaving as documented or
expected. As I have tried setting numerous "Field Properties" I will only
mention one of them here, and one "Column Attribute" so the email is as
short as possible.
Field Property:
I have tried to set the Visible property as follows:
(1) I have tried setting this property on the TIB_Connection, using the
Object Inspector
R_IB=FALSE
But it did not work.
(2) I have tried setting this property on the TIB_Cursor, using the Object
Inspector
R_IB=FALSE
But it did not work.
(3) I have tried using the TIB_Cursor Editor - Query Forms - Field Property
- Visible
But it did not work.
(4) I have used the following function(s) to set this Field Property in the
code
crsCVDBCursor->FieldsDisplayWidth->LinkValues["R_ID"] = 0;
crsCVDBCursor->FieldsDisplayWidth->LinkValues["R_CREATED_BY"] = 0;
It is the only way it will work. However, it is not very efficient way of
doing things.
Column Attributes:
I have tried to set the Boolean attribute for a field so that the
TIB_CursorGrid will display this field as a CheckBox.
(1)I have tried setting this Attribute on the TIB_Connection -
ColumnAttributes, using the Object inspector
R_SHARED=BOOLEAN=0,1
But it did not work.
(2)I have tries setting this Attribute on the TIB_Cursor - ColumnAttributes,
using the Object inspector
R_SHARED=BOOLEAN=0,1
But it did not work.
(3) I have tried using the TIB_Cursor Editor - Query Forms -
ColumnAttributes - BOOLEAN
But it did not work.
(4) I have tried using the following function(s) to set this
ColumnAttributes in the code as per the documentation.
crsCVDBCursor->ColumnAttributes->LinkValues["R_SHARED"] =
IB_BOOLEAN;
it did not work so I tried:
crsCVDBCursor->ColumnAttributes->LinkParamValue["R_SHARED"][IB_BOOLEAN] =
"0,1";
it did not work so I tried:
crsCVDBCursor->FieldByName("R_SHARED")->AttributeParams[IB_BOOLEAN]
= "0,1";
Thus, I have not been able to get The ColumnAttribute BOOLEAN to behave as
required.
Thank you
Daniel
____________________________
Comvision Pty. Ltd.
www.comvision.net.au
I am currently using a TIB_Cursor in combination with a TIB_CursorGrid.
I have tried to set the "FieldProperty" as well as the "ColumnAttributes" a
number of different ways, but they are not behaving as documented or
expected. As I have tried setting numerous "Field Properties" I will only
mention one of them here, and one "Column Attribute" so the email is as
short as possible.
Field Property:
I have tried to set the Visible property as follows:
(1) I have tried setting this property on the TIB_Connection, using the
Object Inspector
R_IB=FALSE
But it did not work.
(2) I have tried setting this property on the TIB_Cursor, using the Object
Inspector
R_IB=FALSE
But it did not work.
(3) I have tried using the TIB_Cursor Editor - Query Forms - Field Property
- Visible
But it did not work.
(4) I have used the following function(s) to set this Field Property in the
code
crsCVDBCursor->FieldsDisplayWidth->LinkValues["R_ID"] = 0;
crsCVDBCursor->FieldsDisplayWidth->LinkValues["R_CREATED_BY"] = 0;
It is the only way it will work. However, it is not very efficient way of
doing things.
Column Attributes:
I have tried to set the Boolean attribute for a field so that the
TIB_CursorGrid will display this field as a CheckBox.
(1)I have tried setting this Attribute on the TIB_Connection -
ColumnAttributes, using the Object inspector
R_SHARED=BOOLEAN=0,1
But it did not work.
(2)I have tries setting this Attribute on the TIB_Cursor - ColumnAttributes,
using the Object inspector
R_SHARED=BOOLEAN=0,1
But it did not work.
(3) I have tried using the TIB_Cursor Editor - Query Forms -
ColumnAttributes - BOOLEAN
But it did not work.
(4) I have tried using the following function(s) to set this
ColumnAttributes in the code as per the documentation.
crsCVDBCursor->ColumnAttributes->LinkValues["R_SHARED"] =
IB_BOOLEAN;
it did not work so I tried:
crsCVDBCursor->ColumnAttributes->LinkParamValue["R_SHARED"][IB_BOOLEAN] =
"0,1";
it did not work so I tried:
crsCVDBCursor->FieldByName("R_SHARED")->AttributeParams[IB_BOOLEAN]
= "0,1";
Thus, I have not been able to get The ColumnAttribute BOOLEAN to behave as
required.
Thank you
Daniel
____________________________
Comvision Pty. Ltd.
www.comvision.net.au