on 04-25-2008 9:28 AM
Hi,
I have the need to assign different versions (copies) of one view to specific role configuration keys. For example, for one role key I want to show a button in the view and for another not. Is there a way to assign a
"modified" view (copy), not the configuration of the component-view, to specific role keys?
Thanx & best regards,
Oliver
Edited by: Oliver Pregler on Apr 25, 2008 10:29 AM
Hi,
when you copy a view on the UI Config Tool you can enter the config role key as a differentiator.
The Config role key is assigned to the business role.
Best regards
Frederic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
when you are talking about "UI Config Tool" you refer to TX "BSP_WD_CMPWB", right?!?
So when I copy a view of a component in BSP_WD_CMPWB there is no field to put in the config role key (BSP Application, Page, Description). When I copy a configuration of a view of a component, there it is. But in the configuration of a view I am not able to modify the visibility of a button or am I?!
Best regards,
Oliver
Hi Oliver,
what exactly is the use case? You can always dynamically set the visibility of buttons. But which buttons do you refer to?
- If it is a toolbar one you would need to manipulate the internal table that is handed over to the respective <thtmlb:areaFrameSetter> tag or IF_BSP_WD_TOOLBAR_CALLBACK->GET_BUTTONS() method.
- If it is a "hard-coded" button on a view layout you might use the respective attribute enabled of the <thtmlb:button> tag.
Best regards,
Peter
Hi,
I'am talking about s a hardcoded standard button that should be visible depending on the role config key. I had the idea to make an "if -statement" arround the the html-tag and controll the visibility by setting the "enable" attribute. But is there no other way to controll the visibility?
Which method to I need to use to get the role config key of the user?
Thanx & best regards,
Oliver
Hi Oliver,
I don't think there's an "official" API for accessing the role config key. However, the following snippet might work for the time being...
LV_PROFILE = CL_CRM_UI_PROFILE=>GET_INSTANCE( ).
if LV_PROFILE is bound.
RV_RESULT = LV_PROFILE->GET_COMPONENT_PROFILE( CL_CRM_UI_PROFILE_ROLE_CONFIG=>GC_PROFILE_ID ).
endif.
Peter
We solved the problem by some coding in the DO_CONFIG_DETERMINATION method:
CALL METHOD me->set_config_keys
EXPORTING
iv_object_type = 'XXXX'
IV_OBJECT_SUB_TYPE = CL_BSP_DLC_XML_STORAGE2=>DEFAULT_OBJECT_SUB_TYPE
iv_propagate_2_children = abap_false.
Best regards,
Oliver
Edited by: Oliver Pregler on May 30, 2008 5:36 PM
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.