cancel
Showing results for 
Search instead for 
Did you mean: 

Collapse block in Selection screen

jakob_steen-petersen
Active Participant
0 Kudos

Hi

In Webdynpro i create a selection screen with block using IF_WD_SELECT_OPTIONS->ADD_BLOCK

  wd_this->m_handler->add_block(

     i_id         = `BL02`

     i_block_type = if_wd_select_options=>mc_block_type_tray

     i_title      = `Udvidede selektioner`  ).


But i would like to have the block Collapsed as default. How can i do that?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jakob,

If we try to compare GUI blocks http://zevolving.com/2014/07/selection-screen-expand-collapse-various-blocks/ and WD blocks we will need a push-button similar to how it is done in the document referenced. They check which button is clicked and then button's ICON is changed and all the select option elements are visible.


To do this in WD, we may follow -

1. Change icon on click of the button( we may not do this, rather we can have a tray with transparent container which will have the view container )


2. Control the visibility of the view container.


I understand that this is nowhere close to the solution you may need but you may get a heads up.


Thanks


jakob_steen-petersen
Active Participant
0 Kudos

Hi Mohit

I solved the issue by creating two selection "screens" in the webdynpro and included them into a tray (one in each tray). By that the users can expand as they need to.

Thanks for you help

/Jakob