Information générale
Catégorie:
The Mere Mortals Framework
>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
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