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

how to handle onclick event for checkbox via bsp_wd_cmpwb

Hi,

When i set a breakpoint in method 'DO_HANDLE_EVENT' of view controller and click checkbox on webUI, it willnot go to the breakpoint. And how could i handle the onclick event of the checkbox (in P-METHOD?) ?

BR

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2009 at 06:27 AM

    hi,

    In get p method of your field write following code

    
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_checkbox.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'YOUR_EVENT'.
    
      ENDCASE.
    

    Becasuse of this code when checkbox is checked, it will navigate to eh_onyour_event method and also debugger will stop in do_handle_event.

    Best regards

    PAnkaj Kuamr

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2009 at 10:15 AM

    Hi Gang Li,

    As suggested by Pankaj, add the logic in the GET_P method of the checkbox attribute.

    Create an Event and pass it to rv_value in :

    WHEN if_bsp_wd_model_setter_getter=>fp_server_event.

    Put logic in the created event for the operation to be performed.

    Hope this helps!

    Regards,

    Saumya

    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.