Code: Select all
SELECT ID, SUM(AMOUNT) AS TOTAL
FROM TRANSACTIONS
GROUP BY ID
FYI: I'm using version:2.70.0.9...
Code: Select all
SELECT ID, SUM(AMOUNT) AS TOTAL
FROM TRANSACTIONS
GROUP BY ID
By taking those steps, the existing process logic may continue with no modifications. With TClientdataset (alone), I can perform calculation and modifications on any fields contained in, even without doing step 1. Simply use FieldByName('fieldname').AsCurrency form. I'm really expecting what I've found is temporary, hoping you guys to find the best and simplest one. Thanks for the respond... (1. Create persistent fields in the TUniQuery. I guess you already familiar with that (right-click on TUniQuery->Field editors->Add all fields)
2. Set ReadOnly property of Total field (was initially TRUE why?) to FALSE;
3. Skip DatasetProvider, nothing is needed to adjust....
4. Repeat steps 1 & 2 for TClientDataset (makes me cry)
Components not marked with bold-face are part of old design being migrated to UniDAC (here, minus TDCOMConnection). As I explained above they worked just fine before.TSQLServerUniProvider
TUniConnection (conected to an SQL Server 2000)
TUniQuery
TDatasetProvider
TClientDataset
TDataSource
TDBGrid