Jump to content

decimal point using a tablet or mobile phone


katcharowski

Recommended Posts

 

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

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

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

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

  • Upvote 1
Link to comment
Share on other sites

 

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

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

 
 
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

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

×
×
  • Create New...