Skip to main content

Notifications

Announcements

No record found.

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

Purchase Order Report Extension

(0) ShareShare
ReportReport
Posted on by 2
I am creating a Purchase order report extension, I have created a custom RDL design as per the client's requirement. I want to make sure that when my custom report design is selected on the Report Layout filter section the Purchase Order No. value must be provided in the filter box of No. 
 
I am able to apply the Error message validation but I want to make that error popup appear only when my custom report design being selected not for default report design. 
I just want add higher level check as follow on my code snippet
 
If layout -> F3CustomPurchaseOrder 
    if PO.N0 -> empty
       Error('PO Number is required')
 
 
 
 
 
Please tell me how can I achieve this in the report extension. Where to get the report design information in the report extension. Below is the code snippet that I have written for the Error Popup message
 
 
 
 
Thanks
  • Purchase Order Report Extension
    Didn't understand your point Kamal, I just need to fetch which report design is selected in pre-report trigger in my report extension. 
     
     
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    Kamal Khakhkhar 303 on at
    Purchase Order Report Extension
    Hii There,
    As per your question you can create an codeunit from which you replace the Custom layout with default layout on opening. OR in that you can replace the report layout with your required Changes in default. And there are no other reports will be able to select other then applied in Rendering.
    You can go through below link for reference.
     
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-report-custom-render
     
    Thank You.
    Kamal Khakhkhar.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans