Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

[SOLVED] Autofill filter on Journal Lines when the report request page is opened

Posted on by 53
Hi community! I trying to prevent user typos when generating reports by autofilling the filter fields in the report request page.
 
SelectedLine is a journal line record.
 
 
I want to autofill the Document No. and Posting Date fields also but only the Journal Template Name , Journal Batch Name and Line No. are filled.
 
 
I know that with the Line No. filtered,  that the user will be able to generate the correct report. However, I was curious if autofilling other fields would be possible.
 
Thanks in advance.
  • kayc529 Profile Picture
    kayc529 53 on at
    Autofill filter on Journal Lines when the report request page is opened
    Thanks for the responses! My issue has been solved.
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 12,181 Most Valuable Professional on at
  • Suggested answer
    Ramiz Profile Picture
    Ramiz 333 on at
    Autofill filter on Journal Lines when the report request page is opened
    Hi,

    Try applying a filter on the SelectedLine before running the report like

    SelectedLine.Setfilter("Document No.", YourValue);
    SelectedLine.Setfilter("Posting Date", YourValue);

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