cancel
Showing results for 
Search instead for 
Did you mean: 

Need to Disable a link when a condition is failed in Web dynpro ABAP

Former Member
0 Kudos

HI Gurus,

I have an requirement, I am displaying one form, above the form I am displaying the link as Overview. if some conditions failed and the form is not displayed, I want to disable that link ' OVERVIEW" should be in disable mode.

Please provide the code how to approach this.

Thanks

Rahul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks You very much

The problem is resolved now...

Former Member
0 Kudos

Bind the visible property of that uiemelent with an attribute of type boolean and whever you want to hide set that attribute to abap_false.

Former Member
0 Kudos

Hi Radhika,

Thanks for the Response.

I wrote the below code for making the link disable.

data lv_link_disable like ls_context-link_disable.

  • get element via lead selection

lo_el_context = wd_context->get_element( ).

  • get element via lead selection

lo_el_context = wd_context->get_element( ).

  • fill attribute

lv_link_disable = abap_false.

  • set single attribute

lo_el_context->set_attribute(

name = `LINK_DISABLE`

value = lv_link_disable ).

But unfortunately its not wokring.

Can you please let me know what I need to add to this.

Thanks

Rahul

arne_husemann
Explorer
0 Kudos

Hi Rahul,

i guess you have not bound the context attribute LINK_DISABLE to the enabled-property of your Link.

You can bind the property in Layout-Tab using the button on the right-hand side.

Regards, Arne