marcos.digirotas Posted July 13, 2018 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
Sherzod Posted July 13, 2018 Posted July 13, 2018 Hi, Can you please specify which edition and build of UniGUI are you using? Quote
marcos.digirotas Posted July 13, 2018 Author Posted July 13, 2018 Hi, I use the complete edition, Version:1.10.0 build 1466 Quote
marcos.digirotas Posted July 13, 2018 Author Posted July 13, 2018 No, it is not the trial edition. Quote
Sherzod Posted July 13, 2018 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
Sherzod Posted July 14, 2018 Posted July 14, 2018 OK thx To know, did you see these properties on the server side?: YourControl.JSName YourControl.JSId Quote
marcos.digirotas Posted July 16, 2018 Author 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
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.