on 07-22-2009 10:21 AM
Hi experts,
I am currently implementing the SAP cFolders tool. As a requirement I need to set the fields, folder name and subscribe as read only, ie, no one with the role SAP_CFX_USER should be able to change these fields even if the user has u201CWriteu201D authorization in these folders.
Many thanks for your time.
Best Regards,
André Sousa
Hi,
I had the same problem. I registred the following object CL_CFX_CNT_INPUTFIELD and changed method DO_REQUEST:
IF lp_view IS BOUND.
*{ INSERT NPIK900032 2
data: l_folder type STEXT,
l_area type stext.
SELECT SINGLE FOLDER FROM ZFOLDER_NAMES INTO l_folder WHERE FOLDER = p_inputfield-value.
IF sy-subrc = 0.
p_inputfield-readonly = cl_cfx_const_ui=>sc_true.
ENDIF.
*} INSERT
CALL METHOD lp_view->set_attribute
EXPORTING
name = cl_cfx_const_ui=>sc_view_att_inputfield
value = p_inputfield.
ENDIF.
As such, all folder names in table ZFOLDER_NAMES appear with readonly property.
Regards,
AS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi André,
we had also the requirement to set some field read-only.
We also solved this by modifying fol_de.htm in the BSP-Application CFX_RFC_UI.
For example the disabling for abos:
<!-- Display folder Metadata ( and category data ) -->
...
clear: lp_screen_object.
call method CL_CFX_SO_CHECKBOX=>get_for_id
exporting
i_id = 'docsubscribe_id'
RECEIVING
rp_screen_object = lp_screen_object.
if lp_screen_object is not initial.
lp_so_checkbox ?= lp_screen_object.
lp_so_checkbox->DISABLE_AND_UNSET( 'Abonnieren auf dieser Ebene nicht möglich.' ).
endif.
Best Regards
Helmut Wenzler
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
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.