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 ? 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 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 . Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now