<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Global classes / Doppelclick in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-classes-doppelclick/m-p/3372666#M809671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Every Body,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please can someone tell me how can implement Doppelclick using &lt;STRONG&gt;Global classes&lt;/STRONG&gt;.!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2008 09:51:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-06T09:51:29Z</dc:date>
    <item>
      <title>Global classes / Doppelclick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-classes-doppelclick/m-p/3372666#M809671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Every Body,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please can someone tell me how can implement Doppelclick using &lt;STRONG&gt;Global classes&lt;/STRONG&gt;.!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 09:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-classes-doppelclick/m-p/3372666#M809671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T09:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Global classes / Doppelclick</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-classes-doppelclick/m-p/3372667#M809672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you want to handle DOUBLE_CLICK events of controls (e.g. ALV grid, tree) using global classes.&lt;/P&gt;&lt;P&gt;That's a piece of cake. Below I outline a possible procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Create your control instance (e.g. go_grid, CL_GUI_ALV_GRID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Create an instance of your global class. The CONSTRUCTOR method may look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE OBJECT go_myclass
  EXPORTING
    io_instance = go_grid.  " Assumption: class should only handle ALV grid events


METHOD constructor.

  me-&amp;gt;mo_grid = io_instance.  " class may have instance attribute for grid instance

  me-&amp;gt;set_handler( ).  " perhaps private method for setting event handler  
...
ENDMETHOD.


METHOD set_handler.
  SET HANDLER: handle_double_click FOR me-&amp;gt;mo_grid.
ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) Create an event handler method (e.g. HANDLE_DOUBLE_CLICK for event DOUBLE_CLICK of cl_gui_alv_grid) within your global class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it. As soon as the user double-clicks on a row in the ALV grid (go_grid) the method HANDLE_DOUBLE_CLICK of your global class will be called to handle the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 10:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-classes-doppelclick/m-p/3372667#M809672</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-02-06T10:11:45Z</dc:date>
    </item>
  </channel>
</rss>

