Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clistobjedit - Add record - position to added record?
Message
De
27/10/2003 16:01:17
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Clistobjedit - Add record - position to added record?
Divers
Thread ID:
00843250
Message ID:
00843250
Vues:
66
Greetings ALL!

I have a bizobj form with two grids on it (clistobjedit). One is a parent, the other is a child. Whenever my user clicks on Add and adds a new parent record, after the Edit form closes and returns control to the bizobj form the first record becomes the selected record in the grid. I want the newly added record to be the highlighted record in the grid so the user can immediately go to the other grid and add child records immediately (if they want to, which is very likely).

Right now I have this code on the parent grid ADD.Click button:

DODEFAULT()
ThisForm.vehiclemodellist1.Requery() *!* Requery the Child View

ThisForm.clistobjedit2.Refresh() *!* Refresh the Child Grid

I do notice that the grid flashed when it comes back for a short, short time on the added record, but then highlights the FIRST record in the grid. It almost seems like this should be normal behavior, what I am asking that is.

What code would I need and where would the code go to accomplish this?

Thanks!!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform