Pick List Event Question - When you select the value you want

Bruno Del Sol bruno.delsol at bydesign.fr
Sat Jun 20 01:19:35 EDT 2020


   Hi Jeff,

   This is fixed with Studio 10, datagrids now have proper event handling
   to let us validate the data entered by users.

   See whatsnew10 page 61

   Regards
   Bruno

   Data Grid

   Validating data

   Data grids have a new client-executed method, $validate, which allows
   you to validate the data entered into any cell in the grid. If present,
   the method is called when an edit is made to a grid cell, with the
   parameters pRow, pCol, pNewValue being passed to the method. The method
   returns true to indicate that the change is valid, depending on the
   validation code you add to the method, otherwise the value in the cell
   will revert to the previous value.

   Copying data

   Data Grids (and standard list controls) now allow the end user to copy
   data from selected rows. Data grids return the copied rows as
   tab-separated values. You can add a client executed method named
   "$clipboardcopy" to the control to handle the clipboard content. The
   method can return character data or a list. If it is a list, column 1
   must be the MIME type and column 2 must be the content.

   For example:

   # $clipboardcopy client method
   Do lList.$define(lMime,lContent)
   Do lList.$add("text/plain","Copy this as plain text")
   Do lList.$add("text/html","Copy this as <b><u>HTML</u></b> instead")
   Quit method lList

   evCellValueChanged event

   There is a new event for Data Grids, evCellValueChanged, to report when
   the user has changed the value of a cell, while there has been a small
   change to the existing evCellChanged event.

   ❑ evCellValueChanged (pHorzCell, pVertCell)
   sent when the user has changed the value of a cell. pHorzCell - The
   column number of the cell that has changed. pVertCell - The row number
   of the cell that has changed.

   ❑ evCellChanged (pHorzCell, pVertCell)
   sent when the current cell has changed, e.g. when navigating between
   cells with the arrow keys or clicking a cell that isn't the current
   cell.
   pHorzCell - The column number of the new current cell.
   pVertCell - The row number of the new current cell.

By Design
[1]http://www.bydesign.fr
Bruno Del Sol
[2]bruno.delsol at bydesign.fr
tel (33) 01 48 78 47 37
46, rue de La Tour d'Auvergne
75009 Paris (France)

   Le 20/06/2020 à 00:22, Jeff Gibson a écrit :

To All,



One more question on what we are running into with a pick list that exists
in a data grid on a remote form.  Omnis Studio 8.1.7.



We need to find out how we can capture the event that fires when an end user
selects an option in a pick list (either via a click on the pick list, or by
someone tabbing into the column, then using the arrow key to select the
option they want an pressing enter.



I'm not seeing any events that you can turn on that would possibly catch a
key press.  Or catch the expansion or collapse of the pick list.



The closest thing we've found is the evCellChanged event.  But this only
fires if you select another row in the main list.



Are there any tricks to capturing the expansion, selection of an item, or
the collapse of the pick list in a data grid?



Reminder.  This is on a remote form.



Thanks everyone!



Jeff Gibson

Oversite Online

Nashville, TN



_____________________________________________________________
Manage your list subscriptions at [3]http://lists.omnis-dev.com
Start a new message -> [4]mailto:omnisdev-en at lists.omnis-dev.com

References

   1. http://www.bydesign.fr/
   2. mailto:bruno.delsol at bydesign.fr
   3. http://lists.omnis-dev.com/
   4. mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list