cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown Mandatory field - Never Red

Former Member
0 Kudos

Hi all,

I need to put a dropdown in a red marked colour if the user don't select anything on it. Stats of dropdown fields is required only.I am getting porper Element and attribute. But it never becomes read and able to show the message. Only the link between the message and UI element is missing and UI element never change to Red.

I have try these method:

wd_this->message_manager->report_attribute_error_message(

message_text = text

element = wd_context_element

attribute_name = attribute ).

Please help me if any one cross this situation.

Thanks in Advance,

Best Regards,

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Vijay,

i think you are doing it slightly wrong.

wd_this->message_manager->report_attribute_error_message(

message_text = text

element = wd_context_element

attribute_name = attribute ).

here your

text - is the message you want to disply.

element - This has to be your node name

attribute_name - is the name of attribute which has to be in codes.

for eg.

wd_this->message_manager->report_attribute_error_message(

message_text = 'please select atleast one value'

element = node_flight

attribute_name = 'FLDATE' ).

hope you got my point.

regards

pankaj giri

Answers (1)

Answers (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

for this issue, implement SAP note 0001148923 WDA: INT_CHECK_MANDATORY_ATTRIBUTE checks only static attrib

This note has been extended upto support pack 12. so check what support pack do you have.

Thanks,

Chandra

(Reward points if useful)

Former Member
0 Kudos

Even i implement the same Note. my problem didn't solve for Dropdown fields. Dropdown by Key works good. so i change my UI element to By KEY instead of BYINDEX.

Thanks for your help and response,

Warm Regards,

Vijay