Skip to main content
Post a question

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Filter using menusuite item

Posted on 13 Feb 2018 08:47:52 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 13 Feb 2018 at 10:52:39
    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 13 Feb 2018 at 10:33:27
    RE: Filter using menusuite item

    6710.Capture.JPG

    This is the pic

  • Mitr Profile Picture
    Mitr 182 on 13 Feb 2018 at 10:32:03
    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 13 Feb 2018 at 10:20:10
    RE: Filter using menusuite item

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

    genjour.SETTABLEVIEW(genjourtab);

    genjour.RUN;

  • Mitr Profile Picture
    Mitr 182 on 13 Feb 2018 at 10:17:52
    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 13 Feb 2018 at 09:18:40
    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!

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans