cancel
Showing results for 
Search instead for 
Did you mean: 

input data scope

Former Member
0 Kudos

Hi, I want to be sure that my inputfield will allow to save only numbers from 00 to 12 and nothing else, only in exact form as I define it, else error. How can I do this? Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Feder,

Define a simple type of Integer and and give the Minimum Inclusive as "00" and Maximum Inclusive as "12" and bind it to the context attribute you have created. Finally bind the bind the input field to the context attribute created.

This resolves your problem.

Thanks n Regards,

Jhansi Miryala

Former Member
0 Kudos

Define a simple type of Integer and and give the Minimum Inclusive as "00" and Maximum Inclusive as "12" and bind it to the context attribute you have created. Finally bind the bind the input field to the context attribute created.

that works fine but there is problem I would like to fix

- if someone wants to choose 0 it has to be "00", for now if you write in 00 it changes itself to 0. It affects of course "01" and it shows me "1" and so on

edit: external lenght and format solves this issue.

Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a calculated attribute of type string and in the setter of this method do the validation what you need.

Other option is used to use a drop down by list/index with the values prefilled.

Regards

Ayyapparaj

Former Member
0 Kudos

problem solved

Thanks alot.