Jump to content

UniActionList On Button Not Calling The "Action.Execute" procedure


Franco Grech

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...