RTC Design - OnPreSection

infonoteinfonote Member Posts: 233
edited 2010-09-28 in NAV Three Tier
Hi,

In the Classic report - OnPreSection(), there is a sum of fields:
E.g. FieldSum := Field1 + Field2 + Field3;

In the RTC (Visual Studio), where should the code be inserted to calculate FieldSum?

Thanks in advance

Comments

  • BeliasBelias Member Posts: 2,998
    onpresection code is not executed in rtc reports.
    And it's not a good practice to write business logic in the sections. Move it to the onaftergetrecord trigger.
    I don't want to be rude, but if you don't even know this, you should study some manual before developing the rdlc...it's hard
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • infonoteinfonote Member Posts: 233
    Thanks for the reply.

    Actually, that is what I did. Implemented in AfterGetRecord. I wanted to see if there is another alternative.
  • BeliasBelias Member Posts: 2,998
    you can do the sum directly in the rdlc layout...
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.