cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment Indicator in Inbox Result list

Former Member
0 Kudos

Hi Forum,

do you know if it is possible to add an indicator(Flag) in the Inbox Result list that indicates that the E-Mail or Service Request has an attachment ?

Thanks a lot !!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I could add a new attribute.

Thanks a lot for your help !!!

amarnath_kathi
Active Contributor
0 Kudos

I am glad! Did you follow the thread or did you do something different?

Former Member
0 Kudos

Hi,

I followed the thread.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prasenjit,

Thanks a lot for the reply. I will implement it.

Former Member
0 Kudos

Hi,

one question: when trying to add a new attribute in the View ICCM_INBOX/InboxResultView I receive an error message: View not copied or enhanced with wizard; processing not possible.

How did you manage it ?

Thanks a lot !!!

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

You need to enhance the view before you can change it. Right click on the view and select enhance.

Regards

Prasenjit

amarnath_kathi
Active Contributor
0 Kudos

You get that message when the view ICCM_INBOX/InboxResultView is not enhanced. You can add a new attribute only when the Component and view is enhanced.

Former Member
0 Kudos

Hi,

when trying to Enhance Component, it asks for an Enhancement Set. I create it. Then it asks for the BSP Page: ICCMP_INBOX. Then it displays the page Repository.xml and send a message informing that this page will be overwritten. Is it the correct procedure ?

Thanks a lot !!!

amarnath_kathi
Active Contributor
0 Kudos

No! Dont overwrite standard BSP application. When it prompts, add z before ICCMP_INBOX so that all enhancements would be saved in BSP application ZICCMP_INBOX. This is because when you reverse the enhancement, if you want, the Z application can be deleted. So whenever you enhance, save the component enhancemnets in Z BSP application. The best approach would be to just add Z before the standard application name prompted. In your case, it would be ZICCMP_INBOX.

Former Member
0 Kudos

Hi

thanks for the hint.

Now I have the following problem: I enhanced the View "InboxResultView" but the same is not possible for the View "InboxItems". I would like to add a new attribute to that View as well. But the option Enhance is not available.

Thanks a lot for the help !!!

amarnath_kathi
Active Contributor
0 Kudos

You should. In the left pane of component structure browser, right click on the view ICCMP/InboxItems. You will get the enhance option. Once this is done, you will get 'enhance' option in the context nodes. You dont get 'enhance' option over context nodes if view is not enhanced.

Former Member
0 Kudos

Hi,

I forgot to mention that I did it. But I could not create a new attribute in the context, under Tree Structure.

Thanks a lot !!!

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

I think you need to add getter and setter methods for the attribute that we are trying to create in your context node class.

Tell me one thing, do you have a proxy class under the context node?

Regards

Prasenjit

amarnath_kathi
Active Contributor
0 Kudos

Okay. I get it now. Its tree structure. Try [this thread |;which addressed the same requirement of enhancing a tree structure.

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

You can create an attribute of type boolean. Set the property of the attribute as ICON in the get_p method. Afterwards, in the do_prepare_output of the field set its value to 'X' when there is an attachment and SPACE when there is no attachment.

Follow the steps.

1.) Create the attributes in respective context node of the view in the component.

2.) Generate the GETTER & SETTER, GET_P methods for these attributes.

3.) In the GET_P method of the attribute, define the field type 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.

4.)In the GETTER method assign the image url to the 'value' attribute based on the conditions,

IF 'X'.

value = cl_thtmlb_util=>get_icon_url( 'image1.gif').

ELSE.

value = cl_thtmlb_util=>get_icon_url( 'image2.gif').

ENDIF.

Regards

Prasenjit