Mike Posted May 11, 2018 Share Posted May 11, 2018 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')). Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 11, 2018 Share Posted May 11, 2018 Hi, If I understand correctly,Move the RefreshQueries method to a separate module Quote Link to comment Share on other sites More sharing options...
Mike Posted May 11, 2018 Author Share Posted May 11, 2018 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. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 11, 2018 Share Posted May 11, 2018 I do something like this, and works: calling from fvorm1: form2.showmodal( procedure(Sender: TComponent; Result:integer) begin refreshqueries; end ); Quote Link to comment Share on other sites More sharing options...
Mike Posted May 11, 2018 Author Share Posted May 11, 2018 Yes I have already something similar but if I am correct this is processed via the main thread. Therefore I would like to see if an Ajax event can improve performance. 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.