Franco Grech Posted October 22, 2021 Share Posted October 22, 2021 Good day everyone I am having some issues with UniActionList, I wrote a component which stores to DB each time someone execute a Action, however i facing an issue when i put the Action on a button it doesn't call the Action.execute which i need in order to store the action in the DB. However this whole thing is working in VCL. procedure TMainForm.actADD_NEW_COSTUMERExecute(Sender: TObject); begin con1.Open; lst1.Items.Add('act_new'); - like this not end; procedure TMainForm.mgctnlst_OpenModulesMGExecute(Action: TBasicAction; var Handled: Boolean); begin lst1.Items.Add(Action.Name); end; procedure TMainForm.unbtbtn1Click(Sender: TObject); begin actADD_NEW_COSTUMER.Execute; --Liks this works end; The "TMainForm.actADD_NEW_COSTUMERExecute(Sender: TObject);" is on the button onClick evet like this not working its not calling the Execute procedure in the Action But Like this works "procedure TMainForm.unbtbtn1Click(Sender: TObject);" If anybody faced the same issue and someone managed to solve it, i would glad to any kind of help. 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.