Jump to content
Sign in to follow this  
erva

Calculated field

Recommended Posts

Posted (edited)

I'am evaluating RemObjects Data Abstract and trying to get calculated field to show values at grid components column but it stays empty.

 

I have in table's OnCalcField event this code:

 

procedure TClientDataModule.tbl_tasksCalcFields(DataTable: TDADataTable);
begin
  if DataTable.FieldByName('done').AsInteger = 1 then
    begin
      DataTable.FieldByName('isDone').AsWideString := 'Open';
    end else
      DataTable.FieldByName('isDone').AsWideString := 'Done';
end;

Also set field calculated property to true.

 

I tested code above if it's gets executed adding there ShowMessage('Test') and it gets executed.

 

Haven't been using Delphi 15 years and don't member if there's something that i'am missing in properties etc.....

 

Edited by erva

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×