Skip to Content
avatar image
Former Member

Numeric field in webdynpro

Hi,

One way to allow the users to enter only numeric data is through creating the context attribute of type

integer and binding Inputfield uielement datasource to that context attribute.

In the above case if user enters 4 digit number then automatically it will display "," (Ex 1,230)

How can we remove that "," while entering the numbers.Bcose if we want to enter data like phone numbers , we don't want to include "," in between the digits.

Is there any way to do this ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 02, 2004 at 04:44 PM

    Hi Anilkumar,

    yes, create a simple type based on integer in the local dictionary and specify a "java-style" text format pattern for the type at the Representation tab. For example "########0" should solve the problem.

    Hope that helps.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded