on 10-26-2010 9:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
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.