rullomare Posted March 17, 2014 Share Posted March 17, 2014 Hi Mr. Farshad Mohajeri, a question: it is possible to define the jsname of the Delphi component with the same name of the component in Delphi? Thanks Best Regards Salvatore Marullo Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 17, 2014 Administrators Share Posted March 17, 2014 No, because JSName must be unique in a session while Delphi component names can be same when they are on different forms. For example, you can have two UniButton1 controls in Form1 and Form2. Quote Link to comment Share on other sites More sharing options...
rullomare Posted March 17, 2014 Author Share Posted March 17, 2014 Hi, Thanks for the answer. The new jsname can be Form1_UniButton1 and Form2_UniButton1 . I mean then new Jsname is build with Form Name + Component Name. I already use this convention by Clients>Unievents>OnBeforInit : Fanagrafe_eSesso = sender.getId() ; Fanagrafe = Name of form eSesso = Name of TunidbEdit . the advantage is to be able to reference each Delphi component with a symbolic name in any js script : Ext.getCmp(Fanagrafe_eSesso).setValue("") ; Best regards Salvatore Marullo Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 17, 2014 Administrators Share Posted March 17, 2014 We alreay support below syntax: UniForm1.UniButton1 Quote Link to comment Share on other sites More sharing options...
rullomare Posted March 17, 2014 Author Share Posted March 17, 2014 Hi, many thanks !! Salvatore Marullo 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.