web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Validate field on request page on report (processedonly) in BC

(0) ShareShare
ReportReport
Posted on by 25

Hi,

I have created report (processedonly), on request page I have few fields and how to make these field manditory?

pastedimage1638354978853v1.png

I want to do some validation on buttons Plan or OK. or do some check before this report is scheduled to run as Job queue entries. May I know how to do it on BC15 or 19 onprem?

Thanks in advance.

  • Suggested answer
    YUN ZHU Profile Picture
    104,157 Super User 2026 Season 2 on at

    Hi,  you can add these fields check in Report Trigger. Such as trigger OnPreDataItem().

    Examlpe:

    pastedimage1638491125016v1.png

    pastedimage1638491155799v3.png

    pastedimage1638491142441v2.png

    Hope this will help.

    Thanks.

    ZHU

  • Yasmeen sultana Profile Picture
    25 on at

    Thank you so much for your reply.

    This report has no dataItem it is just for processing

    I solved it by validating on trigger QueryClosedPage of request page like below  

         trigger OnQueryClosePage(CloseAction: Action): Boolean

           var

           begin

               if (CloseAction = Action::OK) or (format(CloseAction) = 'Schedule') then begin

                   if (gCatVendorNo = '') then

                       Error('Please select the vendor catalog');

                   if (gPriceValidDate = 0D) then

                       Error('Please select the Valid Pricce date');

               end

           end;

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 570 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 390 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 220 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans