Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clistobjedit - Add record - position to added record?
Message
De
27/10/2003 18:06:26
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
27/10/2003 16:01:17
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00843250
Message ID:
00843320
Vues:
25
Scott,

What you are asking for is the behavior that we're seeing!

It sounds as if Requery() is running on the parent BizObj after returning from the cListObjEditForm. Put a set step in that method and check your call stack when the debugger comes up. That should give you some insight into what's happening.

Hope that helps,
---J

>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!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform