Skip to Content
author's profile photo Former Member
Former Member

Attachment Indicator in Inbox Result list

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 !!!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2010 at 06:07 PM

    I could add a new attribute.

    Thanks a lot for your help !!!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 27, 2010 at 08:44 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2010 at 03:50 PM

    Hi Prasenjit,

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.