marcos.digirotas Posted July 13, 2018 Share Posted July 13, 2018 Hi people! Is there a way to assing an "id" or a "name" property to a component to be used in the conversion to html code? I want to set a inputMask (using the ExtEvents >> afterrender) to a Unidbedit that depends on the value of another Unidbedit, for example: UniDbedit1 must have the inputmask "999.999.999-99" if Unidbedit2 equals to "F", otherwise the inputmask should be "99.999.999/9999-99". On afterrender event, I don't know how to access the value of the Unidbedit2. Looking the html code generated, it looks like: <input id="O5D4_id-inputEl" data-ref="inputEl" size="1" name="O5D4"... If I could assing an acquainted name to "id" or "name" propery I wiil be able to define the correct inputmask. Thanks in advance! Marcos Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 13, 2018 Share Posted July 13, 2018 Hi, Can you please specify which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
marcos.digirotas Posted July 13, 2018 Author Share Posted July 13, 2018 Hi, I use the complete edition, Version:1.10.0 build 1466 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 13, 2018 Share Posted July 13, 2018 Not trial? Quote Link to comment Share on other sites More sharing options...
marcos.digirotas Posted July 13, 2018 Author Share Posted July 13, 2018 No, it is not the trial edition. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 13, 2018 Share Posted July 13, 2018 First of all please visit here: http://forums.unigui.com/index.php?/topic/6291-new-users-please-adjust-your-forum-email-address/ Quote Link to comment Share on other sites More sharing options...
marcos.digirotas Posted July 13, 2018 Author Share Posted July 13, 2018 Ok, it was done! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2018 Share Posted July 14, 2018 OK thx To know, did you see these properties on the server side?: YourControl.JSName YourControl.JSId Quote Link to comment Share on other sites More sharing options...
marcos.digirotas Posted July 16, 2018 Author Share Posted July 16, 2018 Ok! I put this code on the OnCreate method of the form: UniDBEdit3.JSControl.Id:='xyz123'; Is it the right way? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted July 16, 2018 Share Posted July 16, 2018 Yes you can change id like that. 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.