Jump to content

Call event in another frame/form


Mike

Recommended Posts

In procedure AjaxEvent the following event is handled.

  if EventName = '_refreshQueries' then
    RefreshQueries;

How can I call this event in frame TfraDashboardInteractive from another form? The frame is accessible via TfraDashboardInteractive(MainForm.FindComponent('fraDashboardInteractive')).

Link to comment
Share on other sites

That is currently not possible.

 

Let me explain better.

 

After a new order (order detail form) has been created it should appear in another frame/form.

Procedure RefreshQueries is already been used in the frame/form.

Link to comment
Share on other sites

I do something like this, and works:

 

calling from fvorm1:

 

  form2.showmodal(
        procedure(Sender: TComponent; Result:integer)
        begin

               refreshqueries;
        end
      );
 

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...