Subject | help, update some fileds onValidate not refreshing IB_Grid |
---|---|
Author | Iwan |
Post date | 2013-04-08T01:46:17Z |
please help
how to update some fields after, update one field?
i try using event onValidate, but seems IB_Grid not refresh new fileds value
my code like this below:
procedure TForm.QueryValidateField(Sender: TIB_Statement;
ARow: TIB_Row; AField: TIB_Column);
begin
if not Assigned(AField) then exit;
if AField.FieldName='IDGOODS' then
begin
Query.FieldByName('Note1').AsString:= 'TEST1';
Query.FieldByName('Note2').AsString:= 'TEST2';
Query.FieldByName('Note3').AsString:= 'TEST3';
end;
end;
thanks.
how to update some fields after, update one field?
i try using event onValidate, but seems IB_Grid not refresh new fileds value
my code like this below:
procedure TForm.QueryValidateField(Sender: TIB_Statement;
ARow: TIB_Row; AField: TIB_Column);
begin
if not Assigned(AField) then exit;
if AField.FieldName='IDGOODS' then
begin
Query.FieldByName('Note1').AsString:= 'TEST1';
Query.FieldByName('Note2').AsString:= 'TEST2';
Query.FieldByName('Note3').AsString:= 'TEST3';
end;
end;
thanks.