Converting Reports- OnPreSection() trigger

Hi everyone,

I am converting some reports from Nav 2009 R2 to Nav 2013…

For some reports, there is several lines of code in the OnPreSection() trigger, which is no longer supported by Nav 2013…

What shall I do to include this code in the converted report???

Are the reports having rdlc data in NAV2009R2 and working fine in RTC?

There is RDLC data but the the parts with code on that trigger don’t display in RTC…

Here is an example of the code in OnPreSection() trigger:

MyRec.SETRANGE(x1,var1);

MyRec.SETRANGE(x2,var2);

IF MyRec.FINDFIRST THEN

CurrReport.SHOWOUTPUT(TRUE);

ELSE

CurrReport.SHOWOUTPUT(FALSE);

Where can I put that code???

Is the report running same as classic in NAV2009R2?

No, the data with code in the OnPreSection() trigger in Classic does not display in RTC…

Then you need to mmodify the report logic in NAV2009R2 first and then import into NAV2013 once it is working fine in NAV2009R2 RTC.