Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Report Transfooter RDL

Posted on by 145

Hi all,

I try to develop a transfooter in report but i have a problem concept and not works.

REPORT FUNCTIONALITY

First of all this Report show a list of bank movements:

  • For each bank show a totalized in the body
  • One bank can take more than one page. Here need Transfooter
  • The report can run with only one bank or N banks,
  • its a personalized report in 5xxxx numeration.

DEVELOP REPORT STRUCTURE

The structure of Report is the next:

I create two fields in the footer of report with a visibility rule:

IMG-1.png 

CODE IN REPORT

In the report Code i have this functions to set/get value of visibility variable

Shared public auxFlag as Integer
Public Function SetFlagTrue(ByVal Value As Decimal) As Boolean
  auxFlag = 1
  Return true
End Function

Public Function SetFlagFalse(ByVal Value As Decimal) As Boolean
  auxFlag = 0
  Return true
End Function

Public Function GetFlag() As Integer
  Return auxFlag
End Function

LAYOUT 

In the Layout, in the row of detail group i call the function SetFlagTrue, when executes the row of totals i call the function SetFlagFalse. This way when the reports is printing detalis rows, the footer show the 2 fields and when is execute the of totals row of the body the fields of footer not show.

IMG-2.png

PROBLEM

The problem is:

The Report works fine whit one bank, but if the report print multiple banks then the visibility condition fail...

Anotation: If execute the Report with pageBreak between banks works perfect... 

I tried to place the call funcionts in diferent rows but not works...

For see the value of the visibility variable i add in the fields a call to getAuxFlag to can see the value and this is te result:

TRY TO DEBUG RESULT LAYOUT

img3.png

RESULT OF EXECUTION 

IMG4.png

img5.png

Maybe i dont stand the workflow of execution and store variable of the reports but i think this develop is similar to the famouse functionality of GetData and SetData.

I tried to be explicit... sorry is so confus...

Thanks for any reply.

Regards

*This post is locked for comments

  • Rajasekhar@MS Profile Picture
    Rajasekhar@MS 5,567 on at
  • CristianAguerre Profile Picture
    CristianAguerre 145 on at
    RE: Report Transfooter RDL

    Anywone can help?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans