on 10-24-2013 3:36 PM
Hi all gurus,
I have a Context Node, bound with a table, with selection 0..n .
This Context Node is *standard*, and has the "Initialization Lead Selection" is checked.
I cannot change this property via Enhancement as the check is not editable, so I wonder if there's a way to obtain the same result via a pre/post exit in WDDOINIT/WDDOMODIFYVIEW.
Is there any way to obtain this? I searched for methods of IF_WD_CONTEXT_NODE but found nothing...
Hi Matteo,
i didn't found any standard solution for that, so i think you can try something diferent.
Read your context node and get its node_info casting to the class that implements the source code for the if_wd_context_node_info interface
DATA:
lo_nd_test TYPE REF TO if_wd_context_node,
lo_node_info TYPE REF TO if_wd_context_node_info,
lo_cl_node_info TYPE REF TO cl_wdr_context_node_info.
lo_nd_test = wd_context->get_child_node( name = wd_this->wdctx_test ).
lo_node_info = lo_nd_test->get_node_info( ).
lo_cl_node_info ?= lo_node_info.
lo_cl_node_info->reset( ).
Call the reset method of the cl_wdr_context_node_info class. Here is the trick, create a enhancement at the end of the method, asking about the corret node name that you need to initialize (ME->NAME), clear the ME->IS_INITIALIZE_LEAD_SELECTION attribute.
Hope it works,
Regards,
Rodolfo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.