on 08-05-2013 10:38 AM
Is it possible to use field image_source of table et_row_actions in feeder class method IF_FPM_GUIBB_LIST~GET_DEFINITION to define the image for the OCA?
I tried it this way, but it is not working
Does anyone knows, why this is not working?
***** Define row actions
LOOP AT mt_actions INTO ls_action.
ls_row_action-id = ls_action-oca_id.
ls_row_action-image_source = '~Icon/Delete'.
CONCATENATE ls_action-oca_id '_ENABLED_REF' INTO ls_row_action-enabled_ref.
CONCATENATE ls_action-oca_id '_VISI_REF' INTO ls_row_action-visible_ref.
APPEND ls_row_action TO et_row_actions.
ENDLOOP.
Hi Claudia,
Written code seem to be right.
But in row action you are assigning visibility refrence and enability refrence .
Are those refrence field is available in field catalogue structure.??
Because if it is not available in structure then you can't assign the visibility refrence and enability refrence value in GET_DATA method.
Check this and set Visibility refrence to abap_true.
It should work.
Thanks & Regards
Praveen Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
I check my coding, and both fields (visibility and enability) seem to be ok.
Here's the code pice:
* attribute: visible
CONCATENATE ls_actions-oca_id '_VISI_REF' INTO lv_fieldname.
ASSIGN COMPONENT lv_fieldname OF STRUCTURE <fs_s_checklist> TO <field>.
<field> = cl_wd_uielement=>e_visible-visible.
* attribute: enabled
CONCATENATE ls_actions-oca_id '_ENABLED_REF' INTO lv_fieldname.
ASSIGN COMPONENT lv_fieldname OF STRUCTURE <fs_s_checklist> TO <field>.
IF <fs_worklist>-external_type = ls_actions-wi_rh_task AND ls_actions-active = abap_true.
<field> = abap_true.
ELSE.
<field> = abap_false.
ENDIF.
Hello Claudia,
your code should work. My suspicion is that you fill field *_VISI_REF with abap_true ('X') and not
with CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE ('02').
Best regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.