cancel
Showing results for 
Search instead for 
Did you mean: 

GET_P_PRODUCT

Former Member
0 Kudos

Hi,

case iv_property.

when if_bsp_wd_model_setter_getter->fp_fieldtype.

if iv_display_mode = abap_false.

iv_value = cl_bsp_dlcview_descriptor=>field_type_input.

else

iv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.

endif.

when if_bsp_wd_model_setter_getter->fp_onclick.

iv_value = 'PRODUCT_DETAILS'

ENDIF.

END METHOD. *

Please explain me the following.

What is iv_property?

what is fp_fieldtype?

why is iv_display_mode = abap_false.

what is field_type_input?

what is field_type_event_link?

what is fp_onclick?

regards,

Murali.

Edited by: Muralidhar Chatna on Oct 26, 2010 10:30 AM

Edited by: Muralidhar Chatna on Oct 26, 2010 10:31 AM

Edited by: Muralidhar Chatna on Oct 26, 2010 10:31 AM

Accepted Solutions (1)

Accepted Solutions (1)

MichaelNe
Employee
Employee
0 Kudos

Hi Murali,

the P-Getter is used to check on field properties for an attribute (how should the UI framework render the field for the attribute?).

One important property is of course the field type (attribute if_bsp_wd_model_setter_getter->fp_fieldtype, the available field types are attributes in the class cl_bsp_dlcview_descriptor) as you need to define whether it should be a simple text, an input field, an image, etc.

In the code snippet, the field property is switched if the UI is in edit / display mode (input field in edit mode, link in display mode).

The property if_bsp_wd_model_setter_getter->fp_onclick is checked to retrieve the event name (in case of the event link being rendered.

Best Regards,

Michael

Answers (0)