cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting input fields

Former Member
0 Kudos

Is there any way to set up and input field in Web Dynpro to a specific format?

For example, if I have a phone number field, can it be set so that the user can enter 1234567890 and the field will display and store as (123) 456-7890?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

When I go to the representation tab, what would I enter in the format box to make the phone number autoformat to 123-456-7890

Former Member
0 Kudos

Hi Eric,

Enter the format as "###-###-####" and try.

Regards,

Santhosh.C

Former Member
0 Kudos

Hi Eric

You can create a simple type variable in the local dictonary of the component.

After creating a simple type go to the representation tab and choose your format.

Create a context attribute and make type as the simple type variable you have created.

Kishore

Former Member
0 Kudos

Formatting is provided by the data dictionary (DDIC) type of the context attribute. There you can define a format.

The InputField.value property may be bound to self-defined simple types defined in the DDIC.

Armin