cancel
Showing results for 
Search instead for 
Did you mean: 

Error message linking to field

Former Member
0 Kudos

Hi guys,

I'm trying to generate an error message that links to the field when clicked on.

My problem is this. This error message is for a dropdown list. When user choose a blank selection, it will generate the error message to "fill in the mandatory field", with the link to the dropdown box.

I tried lo_message_manager->report_attribute_error_message but it gives an error dump for null values (due to blank selection).

I have also tried cl_wd_dynamic_tool=>check_mandatory_attr_on_view. This works fine for the other inputfields, but it doesn't work for the dropdown list.

Please advise. Thank you very much.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

how is your dropdown done? by key/index?

because with an indexed one, none is selected, thus returning a dump when you try to have

an attribute error message (initial selected element).

Greetz,

Koen

Former Member
0 Kudos

Hi Koen, thanks for the explanation. You are right, I was using dropdown by index. Changed it to dropdown by key and it automatically gets checked with 'cl_wd_dynamic_tool=>check_mandatory_attr_on_view' if its empty now.

Problem solved. Thanks a lot!

Answers (0)