on 06-23-2014 2:50 PM
Hi All,
I am reusing Select Options( WDR_SELECT_OPTIONS ) in my screen.
Is there a way to collapse the Tray( if_wd_select_options=>mc_block_type_tray ) of Select Options when the page is initially loaded.
This is my code for Adding a tray and adding select option fields using add_selection_field later.
* create a block
wd_this->l_handler->add_block( i_id = 'ID01'
i_block_type = if_wd_select_options=>mc_block_type_tray
i_title = ' '
i_width = '100%').
Thanks
Hi Santosh,
There is no standard method available to control the behaviour BLOCK of WDR_SELECT_OPTION.
You need to do an enhancement in view SELECTION_SCREEN of component and use the post exit of WDDOMODIFYVIEW( ) method.
Sample code;
IF FIRST_TIME EQ ABAP_TRUE.
DATA LO_TRAY TYPE REF TO CL_WD_TRAY.
LO_TRAY ?= VIEW->GET_ELEMENT('ID01').
if lo_tray is bound.
LO_TRAY->SET_EXPANDED( ABAP_FALSE ).
endif.
ENDIF.
Note: the changes made in WDR_SELECT_OPTIONS may impact globally for other applications. Instead you can copy the component WDR_SELECT_OPTION and do the necessary changes.
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.