working with Variant
working with Variant
Hi I am testing your product with my DevExpress VCLs (QuantumTree and Quanatum Grid). DevEx VCL setting internaly some data with TFiled->Value style ... and it looks that your MyDAC VCL doesnt work this way! Is there some solution for this (i think) BIG problem! Or am I doing someting wrong?
thas for your response
Bedla
thas for your response
Bedla
here is simple code
critical is :
when setting Value nothing happens, field value doesnt change!
i am using dev_express quantum tree to show hierarchy.
data table is
dev_express treelist, while draging and droping tree nodes, internally sets Field throw Value property.
Code: Select all
TcxTreeListDataNode *FNode = NULL;
FNode = (TcxTreeListDataNode*)cxDBTreeList1->FocusedNode;
if ( !FNode )
return ;
TDataSet *ADataSet = cxDBTreeList1->DataController->DataSet;
ADataSet->DisableControls();
__try
{
TField *AField = ADataSet->FindField(cxDBTreeList1->DataController->ParentField);
if ( AField )
{
ADataSet->Edit();
AField->Value = cxDBTreeList1->RootValue;
ADataSet->Post();
} // end if
}
__finally
{
ADataSet->EnableControls();
} // end try/finally
RecalculateAllTreeNodesOrderValues(cxDBTreeList1, cxDBTreeList1ID, cxDBTreeList1ORDER);
Code: Select all
AField->Value = cxDBTreeList1->RootValue;
i am using dev_express quantum tree to show hierarchy.
data table is
Code: Select all
create table category
(
id bigint unsigned not null AUTO_INCREMENT,
id_parent bigint unsigned,
category_name varchar(128),
category_order int unsigned,
active tinyint(1),
primary key (id)
)
type = InnoDB;
it looks that problem is solved, i have changed all field types from BIG INT UNSIGNED to INT. everything works fine.
and i have final question: what are other restrictions? do you have some list or something like this.
other restriction i have found (finally in this forum) is that if i am using master/detail and key and foreign are BIG INT USIGNED or INT UNSIGNED than everythig is wrong
have a nice day
and i have final question: what are other restrictions? do you have some list or something like this.
other restriction i have found (finally in this forum) is that if i am using master/detail and key and foreign are BIG INT USIGNED or INT UNSIGNED than everythig is wrong
have a nice day