I have not tried this, however: - Form event : On Before Data Entry (listbox only) - track which cell/record you are in from documentation -- A list box cell is about to change to editing mode
- Form event : On After Edit - do your data validation. from documentation -- The contents of the enterable object that has the focus has just been modified or maybe - Form event : On Data Change - do your data validation On Sun, 26 Nov 2017 18:07:27 -1000, John Baughman via 4D_Tech wrote: > Given a named selection list box, Is there any way to reject the > saving of a record modified in the listbox outside of a trigger. For > example I have a field in the table that cannot be blank if there is > more than one record in the current selection. If only one record is > in the selection the user can set the field to blank otherwise if > must contain an entry. > > I do not think I can do it in a trigger as the trigger will not know > how many records are in the current selection on the client. > > Thanks, > > John > > > > > John Baughman > Kailua, Hawaii > (808) 262-0328 > [email protected] > > > > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

