Blank SUM

Im Using the function SUM and I think that it's correct, because work in others Text Objects in the same report.

Im Using This expression: [SUM(<dbdRespostas."count">,MasterData4)] -does not work
In Other TextObject (Same "Line") I Use: [dbdRespostas."count"] - works

What surprises me is that in the GroupFooter i have [SUM(<dbdRespostas."count">,MasterData4)]

and it wors fine too!

What Can be wrong?

Thanks

Comments

  • gpigpi
    edited 6:45PM
    Aggregate functions works in footers only
  • edited 6:45PM
    So... How I can take a sum of the values in the row?

    I need of a accumulate colum like this


    Option | Value | Accumulated

    option1 | 2 | (2)
    option2 | 5 | (7)
    option3 | 3 | (10)

    How I can do this?

    Thanks
  • gordkgordk St.Catherines On. Canada.
    edited 6:45PM
    use a typed variable in the accumulated memo [acc]
    At the top of code page create a typed variable acc: extended;
    initialize it to 0 in the begin end.block at the bottom of the code page
    or in an obp event of a band or header.
    in the obp event of the memo write code to accumulate the value of the value field
    acc:= acc +<datasetname.fieldname>;
  • edited 6:45PM
    This work perfectly for me!
    Thank you very much!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.