Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

Page - Filter Reset - after printing

Posted on by 38
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
 
 
Categories:
  • SÖ-17061501-0 Profile Picture
    SÖ-17061501-0 38 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 64,134 Super User 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 5,038 Super User on at
    Page - Filter Reset - after printing
    Hi
    I hope this can help you, Please check filtergroup function. 
    BR
    GR

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans