I want to create a 'fake' data field in a DataSet (not ClientDataSet):

  • the field should not be stored in the db
  • it's not a calculated field (the user should be allowed to enter input data)
  • the field has business logic meaning, so after the user updates its value it should update other fields (with the OnFieldChange event)

I know I can have a simple no-dbaware control, capture it's OnChange event and perform the calculations there (or call a DataModule function, where the DataSet resides) but I think it's more clean if I can reutilize the dataset automatic binding with db-ware controls and dataset events..

Also this way the unique connection between the Form (Presentation) and the DataModule (Model) it's the DataSet (less coupling)..

PD: I'm using fibplus, with I think the solution (if any) will be at the VCL level..

Thanks!

Edit
Report