cancel
Showing results for 
Search instead for 
Did you mean: 

InputField value validation

Former Member
0 Kudos

Hi All,

If i want to perform validation for InputField. (eg , only numeric values, specific pattern (xxx-yyyy))

Could anyone let me know do we have any built in features under webdynpros to do that., OR we need to do on the event of onenter.

Thanks,

Raghavendra

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

The best to do this to create a simple type and give it all the restrictions.

Create a attribute of this type in context and map the same to the input field.

Regards,

Vijith

Former Member
0 Kudos

Hi Raghavendra,

The alternative webdynpro offers is to create simpletypes of that particular built-in type in your local dictionary& specify your restrictions there. For eg: create a simpletype of built-in type Integer and specify the maximum & minimum values accepted. Then create attribute of that particular simple type and bind it to the input field. This performs the validation check automatically.

But this approach offers limited validations. so if you nedd extensive validation, it is better to have your own validations methods defined.

Best regards,

Nibu.

former_member182372
Active Contributor
0 Kudos

Hello Raghavendra,

check this

Best regards, Maksim Rashchynski