Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Not able to make one input field mandatory dynamically in web dynpro

$
0
0

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


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>