Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Clistobjedit - Add record - position to added record?
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement