Jump to content

[question] how to get the JsId of a UniForm ?


zhyhero

Recommended Posts

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...