Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Delphi
  4. TAggregateField

TAggregateField

Scheduled Pinned Locked Moved Delphi
databasehelptutorialquestion
2 Posts 1 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kylie Ryan
    wrote on last edited by
    #1

    hi all, i'm having a problem with aggregate fields on a filtered dataset. before apply a filter, my aggregate fields look fine. as soon as a filter is applied to the dataset, the aggregate fields return me null. this is an example of how i'm creating an aggregate field. fld = new TAggregateField(ClientDataSet); fld->Active = true; fld->Expression = "SUM(Amount)"; fld->ResultType = ftFloat; fld->FieldName = "TotalAmount"; fld->DisplayFormat = "0.00"; fld->Alignment = taRightJustify; fld->Index = DataSet->FieldCount; fld->DataSet = DataSet; any ideas why this would be happening?? thanks in advance :) K.

    K 1 Reply Last reply
    0
    • K Kylie Ryan

      hi all, i'm having a problem with aggregate fields on a filtered dataset. before apply a filter, my aggregate fields look fine. as soon as a filter is applied to the dataset, the aggregate fields return me null. this is an example of how i'm creating an aggregate field. fld = new TAggregateField(ClientDataSet); fld->Active = true; fld->Expression = "SUM(Amount)"; fld->ResultType = ftFloat; fld->FieldName = "TotalAmount"; fld->DisplayFormat = "0.00"; fld->Alignment = taRightJustify; fld->Index = DataSet->FieldCount; fld->DataSet = DataSet; any ideas why this would be happening?? thanks in advance :) K.

      K Offline
      K Offline
      Kylie Ryan
      wrote on last edited by
      #2

      so no one has any ideas? fyi - yes I have set the filtered property, the filter works fine on the dataset. only the aggregate field does not get updated. and i dont want to re-open the dataset, i've already got the set of records i want to work with, i just need the aggregate field to re-calculate. thanks :)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups