Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Repeated adds in cListObjEdit
Message
De
28/06/2002 14:14:47
 
 
À
28/06/2002 12:07:07
James Lucoff
Solutions Consulting Group
San Diego, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00672719
Message ID:
00673422
Vues:
14
James,

I just started on a form with a similar need (though haven't yet started the editform). I think Paul's suggestion should work. cListObjEditForm has an object reference to the calling form (oCallingForm, I believe). If you call oCallingForm.oBusObj.save(), the oCallingForm.oBusObj.new(), I would think that would work. You may need to refresh cListObjEditForm to clear the controls, but as Paul suggested, I don't think you should have to refresh the cListObjEdit - that's handled internally.

Also, if that the "Add" button has focus when the cListObjEditForm is closed, then the user can just hit enter to quickly add a new record. I know this isn't perfect, but it's pretty good and only requires a little user training.

>Thank you for your patience. I probably didn't describe clearly what was happening.
>
>When I press the Add button on the ListObjEdit form, it brings up the edit form for the record to be added. On this form I have a "next" button with the code you provided in the Click event. When I click on the "next" button, the grid on the ListObjEdit form is unchanged (so I would assume a Refresh is needed), and the Edit form remains on the screen with all the entered fields unchanged. If I press "next" again, nothing changes. When I close the Edit form, only 1 record is added instead of multiple records.
>
>What I am looking for is this:
>
>1. User presses Add button on ListObjEdit form.
>
>2. Edit form comes up.
>
>3. User enters data for new record.
>
>4. User presses "next" button.
>
>5. User sees record added to grid in background, data is cleared from fields in Edit form.
>
>6. User enters another record in Edit form.
>
>7. User presses "next" button, etc.
>
>Thanks again for your help.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform