cancel
Showing results for 
Search instead for 
Did you mean: 

visibility on button

former_member221367
Participant
0 Kudos

cant we show visibility on button in webdynpro?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196213
Active Participant
0 Kudos

Hi Ankita,

     From your question it seem like you wanted to display whether the visibility of the button is set or not. If I am correct then.

     Suppose my_attribute is with which visibility is bind.

          then all you need to do is create a ref type of IF_WD_CONTEXT_ELEMENT.

               data : lo_el_context type ref of IF_WD_CONTEXT_ELEMENT.

               data : value type boolean.

                        lo_el_context = wd_context->get_element( ).

                        lo_el_context->get_attribute(

                                                   exporting
                                                       name =  `my_attribute`
                                                   importing
                                                        value = value ).

                         if  value is not initial.

                              "bind here text of your context button

                         endif.

Hope It Helps

HAPPY ABAPing.

Former Member
0 Kudos

if you want to display visibility text as button text then yes you can do

if you want to change visbility on pressing button then also you can do