Jump to content

TUnimdbNumberEdit permitir valores com casas decimais


chadoiam

Recommended Posts

Bom dia,

Como faço para permitir na versão mobile no componente TUnimdbNumberEdit permitir digitar numeros com casa decimais?

Ao digitar qualquer numero com casa decimal ele fica em vermelho e não salva o valor, permitindo digitar somente numeros inteiros.

 

Obrigado

 

Versão 1531

Link to comment
Share on other sites

5 minutes ago, chadoiam said:

Como faço para permitir na versão mobile no componente TUnimdbNumberEdit permitir digitar numeros com casa decimais?

Ao digitar qualquer numero com casa decimal ele fica em vermelho e não salva o valor, permitindo digitar somente numeros inteiros.

Hello,

Sorry, which edition of UniGUI are you using?

If you are not using the trial version, please adjust your forum email address first:

 

Link to comment
Share on other sites

Good Morning,

How do I allow in the mobile version in the TUnimdbNumberEdit component to allow entering numbers with decimal places?

When entering any number with a decimal point it is in red and does not save the value, allowing you to enter only whole numbers.

Version of the unigui 1531 trial, it was an old doubt of a project that was stopped.

Link to comment
Share on other sites

Consegui segue a Solução abaixo :

Configure abaixo no On Create do seu Formulario para cada campo que utilizar os decimal no mobile.

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

UniguiVersion 1531

Referencia abaixo:

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...