Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a new record in Grid
Message
De
20/10/1998 12:56:24
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
19/10/1998 16:49:49
David Keene
Ibc Computer Distributors
Kitchener, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00148288
Message ID:
00148548
Vues:
26
FWIW, I took an approach based on a tip in Foxpro Advisor. I have a checkbox for 'continuous add mode'. When the user is in a grid and it is checked, I automatically add a new record when they get to the end of a line. If they click on save or short-cut a save, the same thing happens. I accomplish this by putting all the code to check the conditions in the form's custom save method and in the last input box of the grid I just call the save method. The save and add is only done automatically if the continuous add mode is selected, otherwise the user has to click the save button as per a "normal" entry. This makes heads down entry really "intuitive" - at least for my users. HTH

>Hi everyone!
>I'm trying to get a grid to create a new record when a user clicks on a blank space in the grid. I already have a NewItem function to call (which is called from a button to 'add item'). I'm trying to make it a little more intuitive.
>
>Any suggestions are apreciated.
>
>Regards,
>Dave
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform