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

Re: enable / disable a button when changing users ?

$
0
0

Hello Daniel,

 

                 Create an attribute of type wdy_boolean, Bind this attribute to the visiblity property of all the buttons which you want to make enable for user 1. Now in wddoinit, check which user has logged in accordingly write the code.

 

like if sy-uname = '    '.

 

wd_context->set_attribute( name = 'name of your wdy_boolean attribute' value = 'abap_true' for enabling.

.........

.......

wd_context->set_attribute( name = 'name of your wdy_boolean attribute' value = 'abap_false' for disabling.


Viewing all articles
Browse latest Browse all 10519

Trending Articles



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