Page 1 of 1

[RPG]How to avoid Zero supress

Posted: Thu Feb 21, 2019 12:05 pm
by MegumiSawada
Hi,

Our customer would like to set a limitation for a textbox element to accept only numbers.
I have acheived it with the following code:

Code: Select all

HTML('<<TBX1>>                         
TYPE: TEXTBOX                          
DATATYPE : NUMBER                      
VALUEFORMAT.TYPE:NUMBERTEXTFORMAT      
VALUEFORMAT.SHOWSIGN:NEVER             
DISPLAYFORMAT.TYPE:NUMBERTEXTFORMAT    
DISPLAYFORMAT.SHOWSIGN:NEVER           
')  
However, it will perform zero supress automatically. So 0123 will become 123.
The customer would like to avoid this zero supress.
Is there any way to avoid it so that they can have a number with leading zero?

Best Regards,
Megumi Sawada

Re: [RPG]How to avoid Zero supress

Posted: Mon Feb 25, 2019 1:17 pm
by jasonzhou
Hi Megumi,

Currently there is no way to keep the leading zero when DATATYPE is Number.

We can add a new property to allow the leading zero in number. If it sounds ok for you, can you please submit an enhancement request to LANSA support?

Thanks
Jason