cancel
Showing results for 
Search instead for 
Did you mean: 

Error is selcting values from drop down

Former Member
0 Kudos

Hi All,

I have a "drop down by Key" component in the screen and it has got some values. I have created a node and an attribute under that node to bind with that component.

At runtime. even if i select a value which is there in the list, it givs me the following error:

"The Entered value is not On the list of valid values".

Can you please tell me where i am doing mistake?

Thanks & Regards,

Senthil.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi All,

Thanks for the reply.

The attribute type char only and this is how i am adding the contents:

lo_mon_nd = wd_context->get_child_node( 'MONTH_YEAR' ).

lo_mon_nd_info = lo_mon_nd->get_node_info( ).

LOOP AT wd_this->gt_month_year INTO ls_month_year.

CONDENSE ls_month_year-month_year.

ls_value_set-text = ls_month_year-month_year.

ls_value_set-value = ls_month_year-month_year.

APPEND ls_value_set TO lt_value_set.

ENDLOOP.

lo_mon_nd_info->set_attribute_value_set(

EXPORTING

name = 'MONTH_YEAR'

value_set = lt_value_set ).

I have tried by hard coding the values but facing the same issue.

Thanks & Regards,

Senthil.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Change the type of the attribute to character or string.

The data type which you have chosen has its own value range in the domain.

Abhi

Former Member
0 Kudos

Hello,

Can you please let us know how you are populating the dropdown. This is a strange error.

have nerevr came across this kind of error.

Thanks

Pradeep

Former Member
0 Kudos

Hi,

see example from DEMO_UIEL_STD_SELECTION component

DEMO_UIEL_DROPDOWN_BY_KEY application

Former Member
0 Kudos

Hi Senthil,

How are you retrieving values to the drop down? From a Domain of the Attribute type or hard coding in a different method??

Regards,

-Wahid Hussain.

Former Member
0 Kudos

Hi All,

I am retriving the values from a table which has a list of "months & year" (E.g. July 2010) and putting into the drop down. The type of the attribute is char20(similar to the table's field type ).

Thanks & Regards,

Senthil.

Edited by: senthil nathan on Jul 28, 2010 4:20 PM

Former Member
0 Kudos

Hi,

are you getting error in the above code snippet ? where exactly ? .

You have the node MONTH_YEAR .

what type attribute you have under the MONTH_YEAR node ?