Hi Experts,
I'm not able to make one input field mandatory dynamically. I have written the code in the "WDDOMODIFYVIEW" method of the view. My code is written below:-
DATA lo_nd_origin_sub_mandt TYPE REF TO if_wd_context_node.
DATA lo_el_origin_sub_mandt TYPE REF TO if_wd_context_element.
lo_nd_origin_sub_mandt = wd_context->get_child_node( name = wd_this->wdctx_origin_sub_mandt ).
* get element via lead selection
lo_el_origin_sub_mandt = lo_nd_origin_sub_mandt->get_element( ).
* set single attribute
lo_el_origin_sub_mandt->set_attribute(
name = 'ORIGIN_SUB_MANDATORY'
value = 'required' ).
But field is not getting mandatory. Please help me out