Skip to Content

Click event in dropdown

Hi,

how to use a expand or press or click event on Dropdownbox.

i have only one value so want to capture these events and do some logic.

Best regards,

Rohit

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 24, 2014 at 02:50 AM

    HI Rohit

    Is it that because there is only one item in the dropdownbox that you do not get the change event?

    -D

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 24, 2014 at 06:06 AM

    Hi Rohit,

    Specify event for dropdown selection in GET_P_XXX method of that context node.

    METHOD get_p_fieldname.

       CASE iv_property.

         WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

           rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.

         WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

           rv_value = 'FIELD_SELECTED'.

       ENDCASE .

    ENDMETHOD.


    Now define the event 'FIELD_SELECTED' in event handlers and write your logic.


    Thanks,

    Ritu

    Add comment
    10|10000 characters needed characters exceeded