katcharowski Posted February 10, 2020 Share Posted February 10, 2020 does not accept to enter decimal point on the tablet or mobile phone using "unimdbnumberedit", the field is recorded without content. Also using the editor in "unimdbgrid", the "ok" button is disabled when entering the decimal point. This occurred after upgrading from version 1.90 Link to comment Share on other sites More sharing options...
katcharowski Posted February 10, 2020 Author Share Posted February 10, 2020 using "unimnumberedit" when using decimal point, returns the error: "" is a not a valid floating point value Link to comment Share on other sites More sharing options...
katcharowski Posted February 10, 2020 Author Share Posted February 10, 2020 put a showmessage of the field after being filled and returned empty using "unimnumberedit" when using decimal point, returns the error: "" is a not a valid floating point value Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 On 2/10/2020 at 7:29 PM, katcharowski said: does not accept to enter decimal point on the tablet or mobile phone using "unimdbnumberedit", the field is recorded without content. Also using the editor in "unimdbgrid", the "ok" button is disabled when entering the decimal point. This occurred after upgrading from version 1.90 Hello, Can you please make a simple testcase for this? Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 http://sinteg.com.br/isapi/sweeta.dll/m Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 on desktop, works ! on android, the field return blank on ios, the field return on integer Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 Just now, katcharowski said: on desktop, works ! on android, the field return blank on ios, the field return on integer If possible, make a simple testcase and attach here for test. Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 the same problem was reported By GRFS2000, May 24, 2019 under the heading: TUnimNumberEdit decimal Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 our project was totally hampered by this bug, and we are facing serious problems. A call was opened, with no return. Please we need some help. If this error has existed since 24 May 2019, some solution must have existed. Thanks Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 On 2/10/2020 at 7:29 PM, katcharowski said: does not accept to enter decimal point on the tablet or mobile phone using "unimdbnumberedit" Can you test with this attribute? UnimNumberEdit.ClientEvents.ExtEvents -> function painted(sender, eOpts) { var me=sender.inputElement; if (me) { me.dom.setAttribute('inputmode', 'decimal'); } } Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 You may also need to use these configs on UnimForm.OnCreate event: UnimDBNumberEdit.JSInterface.JSConfig('decimals', [2]); UnimDBNumberEdit.JSInterface.JSConfig('inputType', ['any']); Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 unfortunately it didn't work, even so thanks for the help Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 1 minute ago, katcharowski said: unfortunately it didn't work, even so thanks for the help 2 minutes ago, Sherzod said: You may also need to use these configs on UnimForm.OnCreate event: UnimDBNumberEdit.JSInterface.JSConfig('decimals', [2]); UnimDBNumberEdit.JSInterface.JSConfig('inputType', ['any']); Try with these configs too... 1 Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 with these settings, the field is now filled, but only with an integer. eg, type 8.57 and return 9 Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 29 minutes ago, Sherzod said: function painted(sender, eOpts) { var me=sender.inputElement; if (me) { me.dom.setAttribute('inputmode', 'decimal'); } } Are you using also this JS event? Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 I am using this as you guided me earlier, is it in the same place ?? UnimNumberEdit.ClientEvents.ExtEvents Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 Then first of all I'll try to reproduce this issue and check. Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 attached sweeta.pas and sweeta.dfm (as text) with the suggestions you gave. to see the result, access the link and type a number with decimals on a mobile device http://sinteg.com.br/isapi/sweeta.dll/m if you try to popularize clientdataset, the error happens "cannot read property id of null", which also did not find a solution. the data entered in the clientedataset would be necessary for you to see the problem of editing the numeric field, when you double-click on the grid. sweeta.dfm sweeta.pas Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 TJvDataSource ? Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 yes, i use several jedi components without any problem, but i changed to native tdatasource and nothing changed Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 if you access prime.fmsoft.net/demo/touch/mdemo65.dll, go to dbgrids -> dbgrids editor, select any record, and try to change the salary field to a decimal value, you will get the following result: android, disable the ok button and IOS will record the value without decimals Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 another test: go to database -> dbcontrols enter a salary with decimal values and you will see that it will record in white. Note: note that the sixth record appears with a blank value, when in fact the value is 33292.94. you can confirm this in dbgrid-> column resize Link to comment Share on other sites More sharing options...
Sherzod Posted February 12, 2020 Share Posted February 12, 2020 We will check... Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 similarly in our project, we have numerous screens that have these peculiarities, and all of them stopped working. I opened a ticket but I didn't get any answer. As we cannot continue with this situation, we have to return to a previous version, although we have made several adjustments to version 1.90. If you know, I would like to know if in version 1.50 this too happens. we previously used version 1.00 Link to comment Share on other sites More sharing options...
katcharowski Posted February 12, 2020 Author Share Posted February 12, 2020 we noticed that between versions 1.00 and 1.90 there were several very interesting visual changes, and we would not like to return to version 1.00 if that were possible. so I ask you if version 1.50 is similar to 1.90? Link to comment Share on other sites More sharing options...
Recommended Posts