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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

stopping the execution of batch process

(0) ShareShare
ReportReport
Posted on by 340

I have some custom validation when the user clicks the "Begin Processing" button on a batch process screen.  If the validation fails then I would like the batch process to stop processing the standard code.   Can someone please help me on that?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Barry Flynn Profile Picture
    3,090 on at

    The only way I know of to do this is some variation of the following

    - Shift the real Begin Processing button off the visible screen (ie set Left to -1000) and set TabStop to false

    - Add your own begin processing button.

    - When your button is pressed, do your validation.

    - If yiou want to proceed, programatically click the real button.

    THe last step can be the tricky one - I have found that sometimes it works and sometimes it doesn't.

    Two possible techniques are:-

                  sivmyapp.controls("The_Button_Name").value = true

    and

                   Call ApplSetFocus("The_Button_Name"")

                   Call SendKeys(" ",true)

    Barry

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans