[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

stopping on-click in BeforAction

Does anyone know how to stop a TDbNavigator.OnClick event happening depending on certain conditions examined in the BeforeAction? It seems setting a flag and doing an abort might be the best.  Tom.
0
boardtc
Asked:
boardtc
1 Solution
 
WaldekCommented:
Hmm , Do I good understand You ? Check Abort procedure :}
0
 
Pegasus100397Commented:
Tom,

If button = nbPost then
     If Edit1.Text = '' then      {Required value left out!}
         Begin
          Showmessage('Must enter a value!');
          ABORT;
         End;

Good luck with your project!
Pegasus
0
 
boardtcAuthor Commented:
Pegasus, thanks a lot, I tied the abort in the onclick based on a flag set in beforeaction and stupidly never tried the abort in the BeforeAction.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now