web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Filter using menusuite item

(0) ShareShare
ReportReport
Posted on by 192

Hello Experts,

I have below situation in nav 2017.

I have created few menusuite items in a custom menusuite- Company 1080:

1) general journals

2) cash receipt journals

3) recurring journals

but these all point to general journal batches page.

I want if the user clicks on menuitem "general journals" then the general journals batches page should only show filtered genral journal batches

if user clicks "cash receipt journals" then the general journal batches page should show filtered cash receipt journal batches only

but it does not seems to work as I don't find any place to filter using menusuite items

can you please help me with it

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    In Menusuite directly you can't set a filter on a page.

    In cases where you want to open a page with filters, you could use different approaches, for example:

    1) calling a codeunit on the menusite that apply filters on a dataitem and then opens the page accordingly to the filters.

    2) Open the page and in the OnOpenPage you can set filters on records (FILTERGROUP)

    I suggest you solution 1.

  • Mitr Profile Picture
    192 on at

    Thank you so much.

    Can you give me a simple code.

    I did like this:

    in codeunit:

    OnRun()

    genjourtab.SETFILTER("Journal Template Name",'GENERAL');

    genjour.RUN;

    but it does not filter.

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    genjourtab.SETFILTER("Journal Template Name",'GENERAL');

    genjour.SETTABLEVIEW(genjourtab);

    genjour.RUN;

  • Mitr Profile Picture
    192 on at

    Thanks a lot for help however it still does not filter the data:

    TThanks

  • Mitr Profile Picture
    192 on at

    6710.Capture.JPG

    This is the pic

  • Suggested answer
    Mitr Profile Picture
    192 on at

    Thanks it worked now, I additionally added setcurrentkey and it worked.

    I don't know how but it worked.

    Thanks a lot

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans