on 01-23-2015 6:55 AM
Hi expert,
I'm doing an enhancement for a view on a component on WEB UI.
I created a table view and want to make one column to display as hyper link?
What should I do?
Thank you.
Jerry
Hi Jerry,
Go to table view context node under attributes select the field and generate get_p_method
declare like this..
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
rv_value =
'HYPERLINK'
.
ENDCASE.
go to events create event name with the same name what you have passed in get_p_method. ex here HYPERLINK.
write the logic over there to navigate.
see this link...
SAP CRM WEB UI : 32.MAKING A FIELD VALUE AS HYPERLINK IN TABLE VIEW
Creation of Hyperlinks to navigate dynamically on Web UI - CRM - SCN Wiki
let me know if you have any queries..
Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
I redefined my GET_P method,and created the event handler method,but the field is still displayed in normal mode,no hyperlink. I debuged the program,the system get into to GET_P method only ONCE,
the value of IV_PROPERTY is "backgroundColor", that's wierd. Is there any other settings I need to make?
Thank you.
Jerry.
.HI Jerry,
Yoy have to put code in GET_P method to make it as hyperlink fot that perticular attribute.
Regards,
Deepika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Jerry,
Generate the Get_P_XXX method for your column and change the FieldType.
Sample Code:
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.
WHEN IF_BSP_WD_MODEL_SETTER_GETTER=>fp_onclick.
rv_value = 'EVENT_NAME'.
"...
ENDCASE.
Regards,
Ankit Gupta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
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.