on 03-19-2015 11:04 AM
Hi Team,
My requirement is I want to add one custom field in search result of account screen,This field i want to set Traffic lights Red,Yellow,Green?
Field name is - INDICATOR
Based on customer Belongs to B2B type - red color and
retail type - yellow
trend type - green
like that indication we need to display in result list columns..they have maintained differentet customers different types..so differenct types we need to indicate as colur in result list..How to do it?
Could you please help here.
Thanks
Kalpana
Hi Team,
Iam looking help here..
Thanks
Kalpana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalpana
This of course would be a custom requirement.
If you specifically want a Traffic Light I do not think the AET tool would provide the help you seek.
My recommendation would be to check the logic as applied in the Agent Inbox.
Hopefully some of the more serious programmers will be able to provide further guidance.
Regards
Arden
Hi Kalpana,
they have many blogs for adding custom field in a search and result view. search in scn you will get how to add custom field in search/result view. ex links
http://scn.sap.com/thread/1969073
then if you want to provide traffic light in get_p method you have to declare as image
case iv_property.
when if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_image.
endcase.
then based on condition in getter method have to populate the image over there..
case value.
when 'E'. "Incorrectly processed "#EC NOTEXT
value = '/SAP/BC/BSP/SAP/thtmlb_styles/sap_skins/default/images/Spotlight_Red.gif'.
when 'S'. "Successfully processed "#EC NOTEXT
value = '/SAP/BC/BSP/SAP/thtmlb_styles/sap_skins/default/images/Spotlight_Green.gif'.
when 'W'. "Not processed "#EC NOTEXT
value ='/SAP/BC/BSP/SAP/thtmlb_styles/sap_skins/default/images/spotlight_yellow.GIF'.
endcase.
you can use above code or you can use by using util class like this.. cl_thtmlb_util=>get_icon_url( 'overDue_1.gif' ).
cl_thtmlb_util=>get_icon_url( 'due_1.gif' ).
cl_thtmlb_util=>get_icon_url( 'notDue_1.gif' ).
cl_thtmlb_util=>get_icon_url( '1x1.gif' ).
Try this
Regards,
Srinivas.
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.