Handeling events

I'm quite bad at explaining my problems.....but here goes!
package harmonics;
import java.awt.BorderLayout;
import javax.swing.*;
public class MainProgram
     public static JPanel jpanNorth, jpanSouth;
     public static void main(String args[])
          JFrame jfrmMain = new JFrame("Harmonics Program");
          jpanNorth = new JPanel();
          jpanSouth = new JPanel();
          Producer sp = new Producer(jpanSouth);
          jfrmMain.getContentPane().add(jpanNorth, BorderLayout.NORTH);
          jfrmMain.getContentPane().add(jpanSouth, BorderLayout.SOUTH);
          jfrmMain.setSize(500,500);
          jfrmMain.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
          jfrmMain.setVisible(true);
package harmonics;
import javax.swing.JPanel;
import javax.swing.JSlider;
public class Producer
     public static JSlider sliders[];
     public Producer(JPanel pan)
          sliders = new JSlider[10];
          SliderChanger sliderMoved = new SliderChanger();
          for(int i = 0; i < sliders.length; i++)
               sliders[i] = new JSlider(1,0,100,10);
               sliders.addChangeListener(sliderMoved);
               pan.add(sliders[i]);
     public static int[] getSliderValues()
          int sliderValues[];
          sliderValues = new int[10];
          for(int i = 0; i < sliders.length; i++)
               sliderValues[i] = sliders[i].getValue();
          return sliderValues;
package harmonics;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
public class SliderChanger implements ChangeListener
     public Points p;
     public void stateChanged(ChangeEvent e)
          int sliderValues[] = null;
          for(int i= 0; i < 10;i++)
               sliderValues = new int[10];
               sliderValues = Producer.getSliderValues();
          p = new Points(sliderValues);
          p.printSliderValues();
package harmonics;
public class Points
     private int SliderValues[];
     private double ScaledSliderValues[];
     private double AllHarmonicValues[][];
     private double NewWaveValues[];
     public Points(int vals[])
          SliderValues = new int[10];
          System.arraycopy(vals, 0, SliderValues, 0, 10);
     public void printSliderValues()
          for(int i= 0; i < 10;i++)
               System.out.print(SliderValues[i] + " ");
          System.out.print("\n");
Right so there is the code, and here is my problem. As you can see I can handle the slider event, but I want to have another class called consumer which recieves a points object and does stuff with it, how would I do that?
Cheers for any help
Triff

          Consumer c = new Consumer();
          SliderChanger sliderMoved = new SliderChanger(c);
package harmonics;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
public class SliderChanger implements ChangeListener
     public Points p;
     private Consumer c;
     public SliderChanger(Consumer c) {
          this.c = c;
     public void stateChanged(ChangeEvent e)
          int sliderValues[] = null;
          for(int i= 0; i < 10;i++)
               sliderValues = new int[10];
               sliderValues = Producer.getSliderValues();
          p = new Points(sliderValues);
          p.printSliderValues();
          if(c != null) {
               c.addPoints(p);
package harmonics;
public class Consumer
     public Consumer() {
     public void addPoints(Points p) {
          // do something with it....
}

Similar Messages

  • Handling HTMLB events in BSPs???

    Hi all,
    can anybody tell me the how to handel events in BSPs??

    Hi Aravind,
    Follow the link  /people/brian.mckellar/blog/2004/07/28/bsp-programming-handling-htmlb-events u can understand.

  • UIX - Showing search page with no results as default

    I modified the uix page to create a search page for a simple uix page according to the code give in the forum.
    But this shows initially with results.
    I want the results to be shown only when a search condition is given.

    What u have said was exactly mentioned as a solution when I had searched the Forum.
    Ok these were the steps I followed:-
    1. A uix data page created (datapage1.uix) in Struts pagelayout.
    2. Drag and Drop EmployeesView1 from datacontrol pallete.
    3. Added the rendered property for the table in the source code.
    <table rendered="${requestScope.showResults?true:false}" model="${bindings.EmployeesView1}" id="EmployeesView10" partialRenderMode="multiple" partialTargets="_uixState">
    4. Then drag and drop textinput from component pallete for the search value and named it value
    5. Drag and drop a submit button from componet pallete and named it Query also named an event query.
    6. In the handeler for this event i added a go
    7. also added a set in the source code for the handeler
    <event name="query">
    <compound>
    <set target="requestScope" property="showResults" value="${true}"/>
    <go name="query"/>
    </compound>
    </event>
    8. Added a DataAction to which i added my method that was exposed to the client. The code for the method is :
    public final void setCondition(String p_cond)
    ViewObject empvo = findViewObject("EmployeesView1");
         //Creating a Where clause for the query
    String whereclause = "LAST_NAME like '%"+ p_cond +"%'";
    empvo.setWhereClause(whereclause);
    empvo.executeQuery();
    9. then I set the parameter value property in the stuts structure panel for the action top ${param.value}
    10. When I run this page from struts pagelayout The initial display is only the testinput field and the button. After I feed the value and hit the button. The screen just blinks thats it. but no results shown.
    Could some one tell me where have I gone wrong?
    Need help! Urgent

  • Combobox selection

    Hi
    I have a combo which is populated with some items. When I drop down and keep scrolling and, on my mouse movement over the listed items I should get a tool tip text and not when an item is selected.
    My getSelectedItem works fine only when a selection is made with the click of the mouse and my setToolTipText is working fine after the getSelectedItem(), which is not all I want !
    All I want is... Tool tip should be displayed before a selection is made by the click of mouse, i.e. when a drop down is made !!
    Kindly help me out before I pluck every hair of mine
    Thanx in advance
    Mahadevan

    In Handeling Events on a ComboBox in
    http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html
    It is recommended that we do not listen for low-level events like MouseEvents on ComboBoxes which are compound components. Low-level events are look-and-feel dependent.
    See Concepts: Low-Level Events and Semantic Events in
    http://java.sun.com/docs/books/tutorial/uiswing/events/generalrules.html
    and finally, problem number three here
    http://java.sun.com/docs/books/tutorial/uiswing/events/problems.html

  • AS 3: event handeling

    I thought sending a var directly to the event handeler would
    work but i was wrong. How can you adjust/conditional a function so
    that when one button is clicked it does one thing and the other
    another?

    Check out all the stuff that is in the MouseEvent. There is a
    target property that tells what was clicked on. So:
    trace(event.target);

  • Key down event handeling when the VI isn't active

    Hi
      I've written a simplel VI that increases or decreases a numerical indicator depending on which key is pressed on the keyboard. But this only works when the VI window is active (the titlebar is blue and not gray). Is there anyway to listen for the key-down event even though the VI is not active?
    In advance thanks
    Georg

    I recently ran into a problem with the Acquire Data.
    See http://forums.ni.com/ni/board/message?board.id=170&message.id=147363
    Just in case....

  • Handeling listner and window events in another class

    All if i have my one class that defines a JPanel how i put my listner events into another class.
    so if i had
         import javax.swing.*;
         class MyFrame extends JFrame {
           public MyFrame() {
              setTitle("My Empty Frame");
              setSize(300,200); // default size is 0,0
              setLocation(10,200); // default is 0,0 (top left corner)
           public static void main(String[] args) {
             JFrame f = new MyFrame();
             f.show();
         }And then in a class WindowEvents.class i wanted to have all of the actions for any buttons
    etc. How do i interface that with the main JPanel or JFrame

    I would make another class, for instance if you were doing an ActionListener event, you'd have a seperate class such as,
    public class ButtonHandler implements ActionListener {
    private YourPanelClass view;
    public ButtonHandler(YourPanelClass view) {
            this.view = view;
    public void actionPerformed(ActionEvent e) {
    //event handling code
    view.updateGUI();
    }Then in your main frame class, you'd want an updateGUI(); method which would perform the actions required and to add the event to your button you'd do something like this:
    ImageIcon upIcon = new ImageIcon("navigationIcons/Up24.gif", "Up Button");
            JButton upBtn = new JButton(upIcon);
            upBtn.setToolTipText("Up");
            UpdateButtonHandler ubh = new UpdateButtonHandler(this);
            upBtn.setActionCommand("bob");
            upBtn.addActionListener(ubh);I'm actually having a simular problem to you, where as I have 1 class for my main frame, one class for my button panel with the buttons on and 1 class for my graphics cpt which im moving about via pressing the buttons. Then another class for my actionListener event, im finding it hard to get the event to work correctly because the updateGUI(); method theoretically needs to be placed inside my button panel class, but if I do that I can't seem to update the graphics cpt properly to actually move it, unless I do it in the main frame class which then means I can't have a seperate class for my button panel. Anyone got any ideas on a solution?

  • Confused on event handeling

    Ok I know the difference between low level and schemantic events. But, what if I want a component that is supposed to use schemantic events to use a low level event? Her is the deal, I have a JList that has a ListSelectionListener. I used it, but it doesn't do what I want. I want to lisen for a double click. If I use a mouse event, which seems my only option, the I have to use a low level event that listens for a double click anywhere on the frame, and not just attached to the JList. If that is the case, then does that mean I have to write code to tell where the double click occured and if it were in the list then handle it, if not then ignor it? Is there no way to attach a low level event to a specific component instead of having it listen to all components on the frame, as well as the frame itself? But, if I could do that then it wouldn't be a low level event, right?

    You could just use the mouse listener to find the possition of the mouse, and check to see if it's within the rectangle that the component is located in.
    -Jason Thomas

  • Event handeling variable changes. Is this possible?

    Hey,
    I'm working on a java-beans project and I am trying to come to find a way to signal an event when a variable changes. Basically looking for a way to constantly send the refreshing data to the listener bean.
    I can easily get it to work send the data with pushing a button but this is supposed to monitor a constantly changing temperature and send it to the listener bean.
    Any ideas?
    Thanks.

    Use Timer or ur own Thread.

  • Alv..handling at new event in ALV

    Hi,
    I have a problem in ALV. In the report I have to sum up the cols displaying Sales Order and the col displaying P.O #. However while summing for the same sales order there is a one to one correspondence with the P.O
    eg . SO #        PO #
         3301        1000
         3301        1000
         3301        1000
    SO Total = 3    PO Total =3
    However I want the PO # count to be 1. I have handeled this in a simple Abap report using the event at new vbeln po cnt = po cnt + 1.
    Could you please tell me how to handle this in ALV.
    Thanks..

    hi arup,
      you can handle this in your itab itself..
       where you can add an additional po_count field..
    data : begin of itab occurs 0.
           include structure vbap.
    data : po_count type i,
           end of itab.
    loop at itab.
      at new vbeln.
        itab-po_count = 1.
        modify itab .
        continue.
      endat.
        itab-po_count = 0.
         modify itab .
      endloop
    this will add a one to all the new Sales orders in po_count and zero to all the repetitive ones..
    something like this..
    so#  po# po_count
    3301 1000 1
    3301 1000 0
    3301 1000 0
    3302 1000 1
    3302 .... 0
    you can then sum this field using the ALV option to get the result
    i.e in the field cat use.
      do_sum = 'X'. on the po_count field
    ...this one worked well for me..
    hope this helps you.
    regards
    satesh

  • Event handling in global class (abap object)

    Hello friends
    I have 1 problem regarding events in abap object... how to handel an event in global class in se24 .
    Regards
    Reema jain.
    Message was edited by:
            Reema Jain

    Hello Reema
    The following sample report shows how to handle event in principle (see the § marks)..
    The following sample report show customer data ("Header"; KNB1) in the first ALV list and sales areas ("Detail"; KNVV) for the selected customer (event double-click) in the second ALV list.
    *& Report  ZUS_SDN_TWO_ALV_GRIDS
    REPORT  zus_sdn_two_alv_grids.
    DATA:
      gd_okcode        TYPE ui_func,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_splitter      TYPE REF TO cl_gui_splitter_container,
      go_cell_top      TYPE REF TO cl_gui_container,
      go_cell_bottom   TYPE REF TO cl_gui_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gt_knb1          TYPE STANDARD TABLE OF knb1,
      gt_knvv          TYPE STANDARD TABLE OF knvv.
    "§1. Define and implement event handler method
    "     (Here: implemented as static methods of a local class)
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_knb1      TYPE knb1.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
        CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
        CALL METHOD go_grid1->set_current_cell_via_id
          EXPORTING
    *        IS_ROW_ID    =
    *        IS_COLUMN_ID =
            is_row_no    = es_row_no.
    *   Triggers PAI of the dynpro with the specified ok-code
        CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT        * FROM  knb1 INTO TABLE gt_knb1
             WHERE  bukrs  = '1000'.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create splitter container
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_docking
          rows              = 2
          columns           = 1
    *      NO_AUTODEF_PROGID_DYNNR =
    *      NAME              =
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Get cell container
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = go_cell_top.
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = go_cell_bottom.
    * Create ALV grids
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent          = go_cell_top
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    "§2. Set event handler (after creating the ALV instance)
      SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.  " Or:
    " SET HANDLER: lcl_eventhandler=>handle_double_click FOR all instances.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent          = go_cell_bottom
        EXCEPTIONS
          OTHERS            = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Display data
      gs_layout-grid_title = 'Customers'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNB1'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knb1
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      gs_layout-grid_title = 'Customers Details (Sales Areas)'.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNVV'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knvv  " empty !!!
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    * Refresh display of detail ALV list
      CALL METHOD go_grid2->refresh_table_display
    *    EXPORTING
    *      IS_STABLE      =
    *      I_SOFT_REFRESH =
        EXCEPTIONS
          OTHERS         = 2.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
    *   User has pushed button "Display Details"
        WHEN 'DETAIL'.
          PERFORM entry_show_details.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ENTRY_SHOW_DETAILS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM entry_show_details .
    * define local data
      DATA:
        ld_row      TYPE i,
        ls_knb1     TYPE knb1.
      CALL METHOD go_grid1->get_current_cell
        IMPORTING
          e_row = ld_row.
      READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
      CHECK ( syst-subrc = 0 ).
      SELECT        * FROM  knvv INTO TABLE gt_knvv
             WHERE  kunnr  = ls_knb1-kunnr.
    ENDFORM.                    " ENTRY_SHOW_DETAILS
    Regards
    Uwe

  • Two event handler

    I am using two event handler
        CLASS-METHODS:
            handle_data_changed_finished
                FOR EVENT data_changed_finished OF cl_gui_alv_grid
                    IMPORTING e_modified
                              et_good_cells.
        CLASS-METHODS: catch_doubleclick
               FOR EVENT double_click OF cl_gui_alv_grid
               IMPORTING e_column   es_row_no sender.
    And after I call them like that 
        SET HANDLER ci_events_grid->handle_data_changed_finished
                FOR ci_grid .
        CALL METHOD ci_grid->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
       SET HANDLER ci_events_grid->catch_doubleclick FOR ci_grid.
    There is a problem that when the changes finish on grid , it can handels handle_data_changed_finished
    truely but when the user double click it couldnt gets true row id .
    But when I do not use handle_data_changed_finished method there wasnt problem occurs ,
    How can I use two methods together ?

    No I dont catch with user-command
    Please below the code method implementations.
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_data_changed_finished.
        PERFORM data_changed_finished TABLES et_good_cells.
    ENDMETHOD.                    "HANDLE_DATA_CHANGED_FINISHED
      METHOD catch_doubleclick .
        IF e_column-fieldname NE 'REASON_ICON'.
          EXIT.
        ENDIF.
        READ TABLE gt_itab  INDEX es_row_no-row_id INTO gt_ch_itab.
        CASE e_column.
          WHEN 'REASON_ICON'.
            IF gt_ch_itab-changed = 'X'.
              CALL SCREEN 200 STARTING AT 40 8
                            ENDING AT 80 20.
            ENDIF.
        ENDCASE.
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "LCL_EVENT_RECEIVER IMPLEMENTATION
    FORM data_changed_finished  TABLES et_good_cells STRUCTURE lvc_s_modi.
      DATA ls_good_cells TYPE lvc_s_modi.
      LOOP AT et_good_cells INTO ls_good_cells.
        AT NEW row_id.
          READ TABLE gt_itab INDEX ls_good_cells-row_id.
          IF sy-subrc = 0.
            IF gt_itab-pwmt1   NE gt_itab-old_pwmt1 OR
               gt_itab-pwtt1   NE gt_itab-old_pwtt1 OR
               gt_itab-dlvcnt  NE gt_itab-old_dlvcnt.
              gt_itab-changed        = 'X'.
              gt_itab-status         = icon_led_yellow.
             gt_itab-reason_icon    = icon_system_help.
            ELSE.
              CLEAR : gt_itab-changed,gt_itab-status.
            ENDIF.
            MODIFY gt_itab INDEX ls_good_cells-row_id.
          ENDIF.
        ENDAT.
      ENDLOOP.
      CALL METHOD ci_grid->refresh_table_display
        EXPORTING
          i_soft_refresh = 'X'.
    ENDFORM.                    " data_changed_finished

  • CL_GUI_ALV_TREE  Event CHECKBOX_CHANGE

    Dear Experts,
    i use a tree control using class cl_gui_alv_tree.
    All fields of my fieldcatalog are specified as fieldcat-checkbox = 'X' and fieldcat-edit = 'X'.
    i have a global class zcl...... where i implemeted a method as event_handler for class cl_gui_alv_tree for event checkbox_change.
    i set the event handler before i set_table_for_first_display.
    Set event handler for clicks on hotspots
      SET HANDLER go_qual_block->hndl_checkbox_change FOR p_go_alv_tree.
      ls_header-tooltip   =
      ls_header-heading   = 'Blocking Materials'(008).
      ls_header-width     = 50.
      ls_header-width_pix = abap_false.
      CALL METHOD p_go_alv_tree->set_table_for_first_display
        EXPORTING
         I_STRUCTURE_NAME     =
         IS_VARIANT           =
         I_SAVE               =
          i_default            = abap_false
          is_hierarchy_header  = ls_header
         IS_EXCEPTION_FIELD   =
         IT_SPECIAL_GROUPS    =
         IT_LIST_COMMENTARY   =
         I_LOGO               =
         I_BACKGROUND_ID      =
         IT_TOOLBAR_EXCLUDING =
        CHANGING
          it_outtab            = <go_data_tab>
         IT_FILTER            =
          it_fieldcatalog      = lt_fcat.
    .... add nodes.... frontend_update....
    But when i start the program an click on a checkbox nothing happens. Is the event not triggered?
    I searched for examples which handels the event checkbox_change but i don't find anything.
    Is there a special handling for this event?
    thanks in advance.
    best regards,
    Dennis

    Hello thanks for this answer it was helpful but i have not solved the problem.
    My fault was, that i havn't registered the event before setting the event handler.
    but now i have a new problem to register the event.
      l_event-eventid = cl_gui_column_tree=>eventid_checkbox_change.
      APPEND l_event TO lt_events.
      CALL METHOD p_go_alv_tree->set_registered_events
        EXPORTING
          events                    = lt_events
        EXCEPTIONS
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3.
      IF sy-subrc <> 0.
        MESSAGE x208(00) WITH 'ERROR'.                          "#EC NOTEXT
      ENDIF.
    Set event handler for clicks on hotspots
      SET HANDLER go_qual_block->hndl_checkbox_change FOR p_go_alv_tree.
    it comes back with sy-subrc = 3.
    triggered because item_selection inside the registration.
    But i don't know where this item_selection has to be set.
    LOOP AT EVENTS INTO SIMPLE_EVENT.
        CASE SIMPLE_EVENT-eventid.
          " base events
          when eventid_node_keypress.
          WHEN EVENTID_EXPAND_NO_CHILDREN.
          WHEN EVENTID_NODE_DOUBLE_CLICK.
            IF NOT SEL_CHANGE_USED IS INITIAL.
              RAISE ILLEGAL_EVENT_COMBINATION.
            ENDIF.
          WHEN EVENTID_SELECTION_CHANGED.
          WHEN EVENTID_NODE_CONTEXT_MENU_REQ
               or EVENTID_DEF_CONTEXT_MENU_REQ.
            " register context menu select event
            REG_CTX_MEN_SELECT = 'X'.
          " header
          when EVENTID_HEADER_CONTEXT_MEN_REQ.
            " register context menu select event
            REG_CTX_MEN_SELECT = 'X'.
          WHEN EVENTID_HEADER_CLICK.
            HEADER_CLICK_USED = 'X'.
          " item events
          WHEN EVENTID_BUTTON_CLICK
            OR EVENTID_LINK_CLICK
            OR EVENTID_CHECKBOX_CHANGE
            OR EVENTID_ITEM_DOUBLE_CLICK
            or eventid_item_keypress.
              IF ITEM_SELECTION IS INITIAL.
                                                                                    RAISE ILLEGAL_EVENT_COMBINATION.
              ENDIF.
          WHEN EVENTID_ITEM_CONTEXT_MENU_REQ.
            IF ITEM_SELECTION IS INITIAL.
              RAISE ILLEGAL_EVENT_COMBINATION.
            ENDIF.
            " register  context menu select event
            REG_CTX_MEN_SELECT = 'X'.
          WHEN OTHERS.
            RAISE ILLEGAL_EVENT_COMBINATION.
        ENDCASE.
    Best regards,
    Dennis

  • Isn't its possible to pass parameter with timer events

    helo every one,
    i have a array which i need to plot on the screen. the
    plotting should have some delay in between so that we can see the
    points being plotted. i tried using timer class but when the event
    occurs my loop index has always reached last element. any help...
    heres the code i used

    i have around 1000 data so the flash chrashes as i run your
    code.
    any suggestions to handel such case

  • Event handlers - subscribed

    Hi,
    In the controller I have created an event and a method to fire it. In the view, I need to create a "handleControllersEvent" event handeler, but I cannot subscribe the event from the controller because the dropdown is empty.
    What is necessary (or what have I missed) so that the events from the controller are visible in the subscribed event ddlb when creating an event handler in a view.
    Note:  I am using the popup dialog tutorial as a referenence for my application.
    Thanks for the input.
    Regards,
    faB

    Hi faB,
    open your view, go to "Proprties", press "Add" and add your cotroller.
    Regards, Maxim R.

Maybe you are looking for

  • Data betwen PSA and Cube

    Hi experts, I can see data in all the fields in PSA, but I don't see data for some of the fields in the Cube. The DTP ran succesfully and double checked transformations are mapped correctly. I am struggling to understand why this is happening? Please

  • Import failed, because the sources are not contained in the archive

    Hi, I need to customized some configuration in the Component CPRXRPM_UI. So I have created a Track to Modify the CPRXRPM_UI Component. When I am trying to Import the Compoent I am gettting the below error, 20090625182941 Info   :Starting Step Reposit

  • Lightroom 2.6 Problem Printing Borderless Prints on Epson R800

    I have used Lightroom to print borderless prints (using the paper setting - borderless -sheet feeder) and all has worked fine until I downloaded the new Apple Epson driver.  I found this new Apple driver did not work well as the colours were washed o

  • E Recruiting-Requisition

    Hi Clarification on Job Posting which is part of the Requisition, What information will go to Advertising. Is the matter maintained on the job posting screen or is it possible to capture some of the fields maintianed under General job information. I

  • Still cant find the google earth on my iphone s app store but it does exist on itunes app store

    still cant find the google earth on my iphone s app store but it does exist on itunes app store