on 10-22-2011 7:50 AM
Hi All ,
I had a requirement where I had to hide a few buttons for OSA-POWL-MSS appid. I had deleted the entries from the feeder class IF_POWL_FEEDER~GET_ACTIONS method. It is working fine. The buttons are hidden.
But now my requirement is that, on the basis of a certain scenario, the hidden buttons will be activated(enabled). So what i did is that i created the same entries and inserted the entries in the internal table of the feeder class IF_POWL_FEEDER~GET_ACTIONS method.
I'm able to see the button but the button is disabled. Even though, I have inserted ENABLED = 'X' for the specified buttons.
Any ideas, how to activate these buttons?
Thanks ,
Arnab.
Hi All ,
I was able to solve the problem. I have placed the following coding in IF_POWL_FEEDER~GET_ACTIONS methods. Care has to be taken while filling up the internal table with the standard buttons. The row inserted has to be same as it was, before deleting the entries from the internal table .
I had deleted the 'CREATE' button when the MSS Performance Management View is clicked.
I'm inserting the same when 360degree view( iView is copied ) is clicked.
See the code below :
READ TABLE c_action_defs TRANSPORTING NO FIELDS
WITH KEY actionid = 'CREATE'.
IF sy-subrc NE 0.
create button is missing, add "Create" button
ls_action_def-actionid = 'CREATE'.
ls_action_def-cardinality = 'I'.
ls_action_def-placement = 'B'.
ls_action_def-enabled = 'X'.
ls_action_def-add_separator = 'X'.
ls_action_def-placementindx = 1.
CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
EXPORTING
alias = 'PAOC_HAP_DOCUMENT_WD_UI/CREATE'
RECEIVING
alias_text = lv_button_text.
ls_action_def-text = lv_button_text.
INSERT ls_action_def INTO TABLE c_action_defs.
ENDIF.
Thanks ,
Arnab .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.