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

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