Jump to content

decimal point using a tablet or mobile phone


katcharowski

Recommended Posts

Dear Sir Sherzod,
forgive me for pestering you so much, but it was the only contact I had and I had no alternative. 
as you can see, the problem is not in our project. 
if you can give me a suggestion of which version could migrate you would be very grateful.

Thank you one more time
Link to comment
Share on other sites

does not work

1) using only

function window.beforeInit(sender, config)
{
    Ext.util.Format.decimalSeparator = '.';
}


result -> allows you to type the point (46.12) but then join them (4612)
------------------------------------------------------------------------

2) adding

  UnimDBNumberEdit.JSInterface.JSConfig('decimals', [2]);
  UnimDBNumberEdit.JSInterface.JSConfig('inputType', ['any']);


result -> the decimal point disappears from the keyboard
-------------------------------------------------------------------------

3) adding

function painted(sender, eOpts)
{
    var me=sender.inputElement;
    if (me) {
        me.dom.setAttribute('inputmode', 'decimal');
    }
}

result -> typing decimal point (46.12), everything appears together (4612)
--------------------------------------------------------------------------


4) using option 1 plus option 3 and deleting option 2


result -> allows you to type the point (46.12) but then join them (4612)

Link to comment
Share on other sites

3 minutes ago, katcharowski said:

one more problem in this version 1.90: unimpdf frame does not work on some versions of IOS.

until Version 1.50 works

Hello,

Can you please specify in more details, in which versions? 
And please open a ticket in the support portal for each issue:

http://unigui.com/support/support-portal

Thank you.

Link to comment
Share on other sites

  • 1 year later...

One year later and no progress probably. I have latest UniGUI ver 1.90.0.1546 and situation is the same. On desktop browser I can edit decimal numbers but on iPhone Safari browser unfortunately not.
Is here any working solution? At this moment is our application useless and we are in real troubles...

Link to comment
Share on other sites

On 3/14/2021 at 3:41 AM, Sherzod said:

Hello,

Sorry, this works on Android, can you check? Or is the problem only on the IPhone?

Fresh version 1547 and bug still resist :-((((( we are in situation that probably we have to leave UniGUI and found another platform, this is a big disappointment.

Link to comment
Share on other sites

13 minutes ago, milanius said:

Fresh version 1547 and bug still resist :-((((( we are in situation that probably we have to leave UniGUI and found another platform, this is a big disappointment.

Hello,

Sorry, can you please make a simple testcase to reproduce!?

Link to comment
Share on other sites

  • 1 month later...
On 3/22/2021 at 3:02 PM, Sherzod said:

Hello,

Sorry, can you please make a simple testcase to reproduce!?

Hi,

I made a simple example, sum two numbers. On desktop works fine, on iPhone returns nonsense. It is very hard to explain this to our customers 😞

Regards
Milan

Screenshot 2021-05-15 at 8.30.23.png

IMG_6504.jpg

NumberEdit.zip

Link to comment
Share on other sites

  • 2 weeks later...
  • 10 months later...
  • 6 months later...

I had the same problem, and to solve the best solution I found was:

1. Place a TUnimDBEdit

2. Leave InputType blank as default

3. ExtEvents in Painted put

 

function painted(sender, eOpts)
{

var me=sender.inputElement;
    if (me) {
        me.dom.setAttribute('inputmode', 'decimal');
    }

}

so it will accept decimal number.

 

 

** Em Portugês ***

 

Tive esse mesmo problema, e para resolver a melhor solução que achei foi:

 

1. Colocar um TUnimDBEdit

2. InputType deixar em branco como no padrão

3. ExtEvents no Painted colocar

 

function painted(sender, eOpts)
{

var me=sender.inputElement;
    if (me) {
        me.dom.setAttribute('inputmode', 'decimal');
    }

}

 

assim vai aceitar número decimal.

 

 

 

 

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...