cancel
Showing results for 
Search instead for 
Did you mean: 

Validation of drop down by index field

Former Member
0 Kudos

Dear friends

want to validate a field ( drop down by index ) which has 5  values, suppose user enters wrong value by mistake it should throw an error

for eg

the valid values are

'AAA'

'BBB'

'CCC'

'DDD'

'EEE'           

suppose user enters 'XYZ' it should throw an error

how to do validation in this scenario

Thanks

Vijaya

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Vijaya Laxmi,

Is validation of your DropDownByIndex ui field really required?

I don't see any need for this as user cannot enter his own data into this field as it is already having its own set of list.

Hope I have understood your requirement properly.

As its not accepting any user entry data, no need of doing validation against this field.

Regards,

Rama

Former Member
0 Kudos

Hi Ram

Thanks for your reply,

yes i know that user will select values from drop down , if by mistake user enters  some wrong value in drop down and then click Submit button, then i should display some error message

ramakrishnappa
Active Contributor
0 Kudos

Hi Vijaya,

There is no chance that user can enter some wrong value of his own. He/she can choose a value from the drop down list.

Example:

Let us say you have set the values to drop down list as below

'AAA'

'BBB'

'CCC'

'DDD'

'EEE'   

Now, user cannot be able to give any input other than the above list. Hence there is not chance of getting wrong entries in that.

I can think of validation on this field is a Mandatory field check ...

Hope I am clear.

Regards,

Rama

Former Member
0 Kudos

Hi Ram

Extremely sorry , its not drop down by index , its a input field with F4 help ( f4 help contains multiple values )

could you pls help me

Thanks

Vijaya

ramakrishnappa
Active Contributor
0 Kudos

Oh...its not DDBI

Okay to validate an input field in WDA, there are many similar thread on scn.

please refer the below links

Input Field Validation in Webdynpro | SCN

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

yes Ram its an input field with F4 help

This F4 help which has 5  values, suppose user enters wrong value by mistake it should throw an error

for eg

the valid values are

'AAA'

'BBB'

'CCC'

'DDD'

'EEE'          

suppose user enters 'XYZ' it should throw an error

u got now , pls let me  know how to solve this

Thanks

Vijaya

ramakrishnappa
Active Contributor
0 Kudos

Hi Vijaya,

I got your requirement.

Please check the links provided in my previous reply.

Let me know if you need further assistance.

Regards,

Rama

Former Member
0 Kudos

Thanks Ram for the above links, i have gone through the links

The links provided by you is different from My Requirement

i have to compare a wrong value with  5 correct values

ramakrishnappa
Active Contributor
0 Kudos

Hi Vijaya,

Could you please open  a new question for this as your requirement is not relevant to the title of this question.

if some one finds this thread and the answer will be for some other requirement. It may confuse them.

Hope you understand.

Regards,

Rama

Former Member
0 Kudos

Thanks Ram.

I solved myself

ramakrishnappa
Active Contributor
0 Kudos

Okay...That's good to hear