zhyhero Posted November 10, 2019 Share Posted November 10, 2019 I am testing something in scene of dynamic create Frame/Form . As a rule, in one From or Form , we can call jscode ajaxRequest(sender,"method",[{Params}] ); , and respond to delphi procedure AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); . sender ==> Ext.getCmp("id"), id ==> sender.id (jscode) . id of Frame ==> frame.FormRegion.JsId; (pascalcode) . if we pass id of target Frame to source Form , then we can call target frame's method by begin self.unisession.addjs('ajaxRequest(Ext.getCmp("id"),"Method",[{params}])'); end; in source Form . same thing with Frame and Frame. id of Form ,I can't get , (but we have form.show(callbackproc) and form.showmodal(callbackproc) ). So, how to get the JsId of a UniForm ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 10, 2019 Share Posted November 10, 2019 2 minutes ago, zhyhero said: So, how to get the JsId of a UniForm ? UniForm.WebForm.JSId Quote Link to comment Share on other sites More sharing options...
zhyhero Posted November 10, 2019 Author Share Posted November 10, 2019 thank you, Sherzod . I will try this . 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.