Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Print only selected rows in a report + navision 2013

(0) ShareShare
ReportReport
Posted on by 153

Hi everyone ,

could u please help me ,I wanna  select checks then when I click on  the button to get report  I wanna have only selected rows.

the problem is that I don't know which code should I put in the report to have only selected ones.

Thanks or ur help :)

*This post is locked for comments

  • infosoft Profile Picture
    infosoft 153 on at
    RE: Print only selected rows in a report + navision 2013

    thanks for ur reply ,

    I make the same code and it doesn't work ,I get all checks  not only the selected ones :(

  • Suggested answer
    Tobias Strobelt Profile Picture
    Tobias Strobelt 152 on at
    RE: Print only selected rows in a report + navision 2013

    You can create a new function in your report e.g.:

    SetFilterData(VAR FilterGenJnlLine2 : Record "Gen. Journal Line")
    FilterGenJnlLine.COPY(FilterGenJnlLine2);

    Whereas FilterGenJnlLine is a global variable of table 81. On the PreDataItem of your relevant DataItem you can then copy those filtered entries into your DataItem with COPY function (e.g. "Gen. Journal Line".COPY(FilterGenJnlLine))

    In the page action you can then run the report as following:

    CLEAR(CheckReport);
    CurrPage.SETSELECTIONFILTER(FilterGenJnlLine);
    CheckReport.SetFilterData(FilterGenJnlLine);
    CheckReport.RUNMODAL;

    Whereas FilterGenJnlLine is also a global record of table 81 in your page.

    Best regards,

    Tobias

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans