Angelica Posted August 3, 2018 Share Posted August 3, 2018 Posted 06 July 2018 - 03:28 PM Hi !! We have a problem with UniDbNavigator --> Events--> BeforeAction We need that button ->nbInsert can Table.cancel when the process ´s done. Details: 1. I 've made for you 2 very simple test case, 2. 1. In a Form, in VCL: procedure TForm1.DBNavigator1Click(Sender: TObject; Button: TNavigateBtn); begin if Button = nbInsert then IBCTable1.Cancel; end; end, Behavior: Button Insert doesn´t work, for us it´s OK, because it ´s we need that way. 2. In a Form, in Unigui: procedure TMainForm.UniDBNavigator1BeforeAction(Sender: TObject; Button: TNavigateBtn); begin if Button = nbInsert then IBCtable1.Cancel; end; Behavior: Button Insert workS, for us it´s KO, because it ´s we need that the table.Cancel works. Have you an alternative? Thanks in advanced. Angélica ( Arizmendi Team) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 4, 2018 Share Posted August 4, 2018 Hi, Maybe you wanted like this ?! procedure TMainForm.UniDBNavigator1BeforeAction(Sender: TObject; Button: TNavigateBtn); begin if button=nbInsert then Abort; end; Quote Link to comment Share on other sites More sharing options...
Angelica Posted August 7, 2018 Author Share Posted August 7, 2018 Hi Dear Moderators: It works excelent!!! Thanks a lot!!!! Angélica ( Arizmendi Team) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.