Cancel
Showing results for 
Search instead for 
Did you mean: 

Set the DataType of an EditTextBox in aDialog

Creator
Creator

Hello PLS community,

 

I would like to set in a method the data type of an Edit Text Box. 

Please find enclosed an example : 

I know how to set the name, the callback argument but I do not know how to do to have "Decimal Number" instead of "Any Character" for the data type.

May someone knows how to do it?

 

Thanks in advance for your help.

Regard,

 

Geraldine

 

2 REPLIES

Re: Set the DataType of an EditTextBox in aDialog

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Geraldine,

 

there is an undocumented function which you can use:

Dialog.setEditType("NameEditBox", 4);

 

But be aware that this function doesn't work when the type is 'Letters and Digits'.

 

Regards,

Ralf

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Set the DataType of an EditTextBox in aDialog

Creator
Creator

Hi Ralf,

 

Thanks for the answer, it is perfecly working.

 

Regards,