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
Thanks it worked now, I additionally added setcurrentkey and it worked.
I don't know how but it worked.
Thanks a lot
This is the pic
Thanks a lot for help however it still does not filter the data:
TThanks
genjourtab.SETFILTER("Journal Template Name",'GENERAL');
genjour.SETTABLEVIEW(genjourtab);
genjour.RUN;
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
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156