Skip to main content

One of the things you can check with the developers on associated to the Event Handler for Grids:

  1. When executing on Acu-Web, I rely on the MSG-GRID-RBUTTON-DOWN and MSG-GRID-RBUTTON-UP events to get generated, to show the POP-UP.  Can I just add the “POP-UP MENU IS GRID-POPUP-MENU-HANDLE” phrase to the grid in the screen section ?
  2. What equivalent event, if any, gets generated when a gird row gets a long-tap ?.
  3. Have they tried to get a pop-up menu displayed on a paged grid row ?
  4. Is there a difference between quick-tap and a long-tap. ?

 

Also, a number of the “Web-Portal” programs I execute from AcuWeb have paged grids, which rely on showing the pop-up menu.  When you first sign-on, the 1st program that executes deals with whatever the application is.  It establishes the Floating Window.  Then this program calls the Grid Management program.  (The Grid Management program handles the display of grids for all the different Web-Portal programs).  I pass the Handle assigned to the original FLOATING WINDOW to the Grid Management program as an argument, and then if I want a pop-up menu, issue the following command:

 

                MODIFY WS-CALLING-PROGRAM-WINDOW-HANDLE

                                EVENT PROCEDURE IS MAIN-SCREEN-EVENT-HANDLER

                             POP-UP MENU IS GRID-POPUP-MENU-HANDLE.

Where:

 

 MAIN-SCREEN-EVENT-HANDLER.

                EVALUATE Event-Type

                   WHEN Msg-End-Menu     PERFORM CLEAR-POP-UP-MENU

                   WHEN Msg-Init-Menu                 PERFORM SHOW-POP-UP-ON-ACUWEB-WINDOW

                   WHEN MSG-MENU-INPUT        MOVE EVENT-DATA-2 TO WS-LOOKUP-FUNCTION           |EVENT-DATA-2 contains the Menu items ID

                   WHEN OTHER            SET EVENT-ACTION to EVENT-ACTION-FAIL

                END-EVALUATE.

 

This procedure does execute when some things are tapped, but I never get the Msg-Init-Menu event.

Perhaps when a grid is “long-Tapped”, (assuming that is recognized), the Event-Procedure assigned to the grid should be able to recognize the Msg-Init-Menu event.  (or the developers should come up with a new event like MSG-GRID-INIT-MENU.)

 

If they don’t already distinguish between a “short-Tap” and a “long-tap”, that might be a great enhancement too, each generating a different event.

 

               


#PagedGrids
#Acu-to-Web
#LongTap/shortTap