cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory input field in group

Former Member
0 Kudos

i have marked the input field "required" and in output it shows with red asterisks... But even without entering any value s/m proceeds further. Is there anything additional to be done?

Thanks

Sreejith

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The suggestion to use check_mandatory_attr_on_view is correct. I might only add that many people like to place the logic in the WDDOBEFOREACTION method so that the logic is triggered before any action event handler.

Former Member
0 Kudos

Hi Sreejith ,

While Press the Save button or Some thing , We need to call this method check_mandatory_attr_on_view .

data:

lo_view_controller type ref to if_wd_view_controller,

msg_tab type cl_wd_dynamic_tool=>t_check_result_message_tab.

lo_view_controller = wd_this->wd_get_api( ).

cl_wd_dynamic_tool=>check_mandatory_attr_on_view(

exporting

view_controller = lo_view_controller

importing

messages = msg_tab ).

Thanks and Regards,

Vijay