Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

Re: Hiding table in webdynpro in an standard program.

$
0
0

Hi Dhinesh,

 

You can try hiding the table in hook method WDDOMODIFYVIEW. This is the only place where you can modify the view elements before they are actually rendered. The code could be something similar to this -

 

method wddomodifyview .
  DATA lo_container   TYPE REF TO cl_wd_uielement_container.
  DATA lt_children        TYPE cl_wd_uielement=>tt_uielement.
  FIELD-SYMBOLS: <fs_element> TYPE REF TO cl_wd_uielement.

 

  lo_container ?= view->get_root_element( ).

  lt_children = lo_container->get_children( ).


  LOOP AT lt_children ASSIGNING <fs_element>.
    IF <fs_element>->id CS 'TABLE1'.
      " Remove the element from the container
      lo_container->remove_child(
        EXPORTING
          id        = <fs_element>->id ).
    endif.
  ENDLOOP.


endmethod.

 

In my case the name of the table that I wanted to hide is 'TABLE1'.

 

Best of luck,

Saurabh


Viewing all articles
Browse latest Browse all 8652

Trending Articles



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