Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh or Requery?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00101032
Message ID:
00101036
Vues:
25
Enrique,

>The Front list in page1, has two columns, first contain a field of my left table and the second the field descriptive. When a click New Button, capture and Save. In the list no appear the sencond column's content, is blank, no descriptive field in my new record.>

The sample Project Manager's ProjectsForm provides an example of how to do this. ProjectsForm's page 1 grid uses v_Projects as its RecordSource. Column 2 contains the "Company Name". It's ControlSource is v_Projects.cDesc which is actually taken from the "Clients" table (open lv_Projects in the View Designer to see this).

In order to update this field, ProjectsForm.PreSaveHook() contains the following code:

REPLACE cClientName WITH v_Clients.cName IN v_Projects

This code is here solely for display purposes. As suggested by its name, PreSaveHook() is executed before the record is actually saved.

If you add similar code to your form your grid will display properly after saving a record.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform