Subject | TIB_DataSource OnUpdateData |
---|---|
Author | sdbeames |
Post date | 2003-05-26T20:11:25Z |
Hi,
I want to detect when a particular field of a TIB_Query is updated
& posted. My TIB_DataSource's OnDataChange occurs too early (before
posting) and its OnUpdateData event always seems to have "Field" set
to null.
void __fastcall TOrdersForm::OrderSrcUpdateData(TIB_StatementLink
*Sender, TIB_Statement *Statement, TIB_Column *Field)
{
if (Field)
{
// NEVER REACHED DESPITE EDITING THIS FIELD IN A GRID & POSTING IT!
if (Field->FieldName == "ORDER_DATE")
SuplrQry->CalculateFields();
}
}
Why is it so?
V4.2.Ib
Thanks,
Steve
I want to detect when a particular field of a TIB_Query is updated
& posted. My TIB_DataSource's OnDataChange occurs too early (before
posting) and its OnUpdateData event always seems to have "Field" set
to null.
void __fastcall TOrdersForm::OrderSrcUpdateData(TIB_StatementLink
*Sender, TIB_Statement *Statement, TIB_Column *Field)
{
if (Field)
{
// NEVER REACHED DESPITE EDITING THIS FIELD IN A GRID & POSTING IT!
if (Field->FieldName == "ORDER_DATE")
SuplrQry->CalculateFields();
}
}
Why is it so?
V4.2.Ib
Thanks,
Steve