Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One record table
Message
From
18/12/2001 21:29:24
 
 
To
18/12/2001 21:17:29
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00595955
Message ID:
00595960
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform