Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Page - Filter Reset - after printing

Posted on by 68
Dear Community,
 
i have got a problem with page filters.
 
Ich have got a page. In this page i added a action which prints a report. 
For this have set certain filters.
Following:
 
Workflow:
When i enter the page for the first time i can see all entries.
 
Then i go the action to print the entries:
As soon as i click one of these, and go back to the list page i get only one entry.
then i get: 
the same goes for several entries:
 
Then i can only see the entries which i have choosen previously:
 
 
So, i want to see all entries again.
I guess i i have to reset the filters.
However i have already tries to reset the filter on trigger on open page.
It does not work.
Dear community do you have a solution for this problem?
 
Thanks in advace
 
 
  • SÖ-17061501-0 Profile Picture
    SÖ-17061501-0 68 on at
    Page - Filter Reset - after printing
    Dear community;
     
    Thank you for your proposal. 
     
    @YUN ZHU
    Thank, you for your proposal. It immediately worked. 
    You are the best. 
     
    Solution Code:
                        AssemblyHeader := Rec;
                        CurrPage.SetSelectionFilter(AssemblyHeader);

    I also thought maybe this would be a problem. 
    Maybe for other people having this problem. 
     
    Thanks, dear community
  • YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    Page - Filter Reset - after printing
    Hi, don't use Rec, try re-declaring a variable, it should solve your problem.
     
    Thanks.
    ZHU
  • gdrenteria Profile Picture
    gdrenteria 12,181 Most Valuable Professional on at
    Page - Filter Reset - after printing
    Hi
    I hope this can help you, Please check filtergroup function. 
    BR
    GR

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