TOTALSCAUSEDBY in RDLC Report

supportnavsupportnav Member Posts: 34
edited 2011-02-11 in NAV Three Tier
hi folks,

@CC : there is the report grouped with x,y,z and displaying based on 'CurrReport.TOTALSCAUSEDBY = z'.
In GroupFooter : OnPreSection - there is code to reset (to make 0) variables.
@RTC : i able to group like CC and also got same set of records, but my Group Total missmatching.[i hope its just because of reseting the variables in CC which will not work in RTC (onPresection codes) ].

I was trying to replicate the same coding for RTC and could not achieve it. (moving OnPreSection code to OnAfterGetRecord() [to reset those variables for RTC] )

I donk know, how to set same scenario for 'TOTALSCAUSEDBY' on OnAfterGetRecord to reset.

Can anyone please give your inputs to solve this issue.

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    You can check How the reports are transformed to RTC in the existing reports which are using TOTALSCAUSEDBY like Report 209..erc.

    It may help you... :thumbsup:
  • supportnavsupportnav Member Posts: 34
    You can check How the reports are transformed to RTC in the existing reports which are using TOTALSCAUSEDBY like Report 209..erc.

    It may help you... :thumbsup:


    there s no report like this scenario ( i hope , :) ..

    in CC : actually for each group(On presection codes) it will reset or add calculation based on condition..

    my doubt is how to take care those codes(resetting values) which is falling Under TotalCausedBy :-k .....
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Can you show your report code or section code?
  • supportnavsupportnav Member Posts: 34
    Can you show your report code or section code?

    ZZZ, GroupFooter (1) - OnPreSection()

    CurrReport.SHOWOUTPUT ((CurrReport.TOTALSCAUSEDBY = FIELDNO (x));
    IF CurrReport.SHOWOUTPUT THEN BEGIN
    IF (A = 1) THEN
    Acum() // its function
    ELSE
    ResetValues; // its function which ll clear values
    AcumAll(); // its function which ll add values
    END;
Sign In or Register to comment.