Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One record table
Message
De
18/12/2001 21:29:24
 
 
À
18/12/2001 21:17:29
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00595955
Message ID:
00595960
Vues:
20
>I have a system table that will only have one record. I'm trying to use CBizObjNoListMaintForm to build a simple edit screen for this record but I can't get it to work without the Find button. Anyone done this or know of an easier way with the MM framework?


I just figured it out! I did the following:

added a unique id to the table (SystemId) and set the rec's value for this field to 1
set the view's filter to SystemId == ?vp_SystemId
set the form's cPrimaryViewParameter to vp_SystemId
set the form's cFindUniqueId = 1
set the form's lAllowNew, lAllowDelete, lAutoNewRecord, and pgfBizObj.lNewRecordOnPage1 all to False
disabled the Find button


Now I get the record to come up when I open the form and can edit it. Only problem is before the form shows up, I get many messages that the controlsource for the text boxes are invalid. Strange because when I get by these, the data shows up ok. Any ideas?

Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform