cancel
Showing results for 
Search instead for 
Did you mean: 

visibilty check for web dynpor ALV

Former Member
0 Kudos

hi,

how can we do visibilty check for web dynpor ALV

srinivas

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

create on attribute in context....

then follow below screen.

then follow bellow sample code.

*  DATA lo_el_context TYPE REF TO if_wd_context_element.

*  DATA ls_context TYPE wd_this->element_context.

   DATA lv_resub TYPE wd_this->element_context-resub.

* get element via lead selection

   lo_el_context = wd_context->get_element( ).

* @TODO handle not set lead selection

   IF lo_el_context IS INITIAL.

   ENDIF.

* get single attribute

   lo_el_context->get_attribute(

     EXPORTING

       name =  `RESUB`

     IMPORTING

       value = lv_resub ).

Regards,

Venkat.

Former Member
0 Kudos

Hi Srinivsa,

can you move the discussion to ABAP webdynpro so that you will get the more answer for your question.

Hope you understand.

JasonLax
Product and Topic Expert
Product and Topic Expert
0 Kudos

Discussion moved from Getting Started with SCN to Web Dynpro ABAP.

Former Member
0 Kudos

Hi,

     Create one context node named VIS_OPTN and map it with visible property of ALV in layout.

then in your method declare following variables:

              

                    DATA  :  lo_el_context TYPE REF TO if_wd_context_element.

                     DATA : val   TYPE string.

    

                     lo_el_context = wd_context->get_element(  ).

                     lo_el_context->set_attribute (        EXPORTING

                                                                            name =  `vis_optn`        

                                                                            value = VAL ).

                    IF     VAL EQ  'x'

                              "Web Dynpro ALV is visible....'

                    ENDIF.

Regards,

     Aaradhana