Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Filter using menusuite item

Posted on by 182

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

  • Suggested answer
    Mitr Profile Picture
    Mitr 182 on at
    RE: Filter using menusuite item

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

    I don't know how but it worked.

    Thanks a lot

  • Mitr Profile Picture
    Mitr 182 on at
    RE: Filter using menusuite item

    6710.Capture.JPG

    This is the pic

  • Mitr Profile Picture
    Mitr 182 on at
    RE: Filter using menusuite item

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

    TThanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Filter using menusuite item

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

    genjour.SETTABLEVIEW(genjourtab);

    genjour.RUN;

  • Mitr Profile Picture
    Mitr 182 on at
    RE: Filter using menusuite item

    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
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Filter using menusuite item

    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.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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