Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique records
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00097899
Message ID:
00097905
Views:
16
Paul,

>I'm using the CBizObjMaintenanceForm that displays a simple list. It's made up of a view (cName,cNum,cID) based on a table that has the same fields. cID's field has the NEWID() function as the Default Value. On the Property page I have two form controls based on kControls. One is ctextbox, the other is a spinner. ctextbox's control source is v_shops.cname, the spinner to v_shops.cnum. When I try to add more than one value to the list, I get a error saying I didn't enter a unique value in one of the controls. I have lUnique set to .F.
>
> I'm wondering what I forgot to set. I've checked the ProjMgr example and can't find what I'm missing.

You may actually be getting a VFP error regarding unique values rather than a framework error message.

I recommend trying to add records to your view outside of the application and see if that works.

If it doesn't recheck the way that you have set up your unique IDs. Make sure they are being generated and assigned correctly when you add new records. Check the section in the Developer's Guide "Adding Tables To Your Application".

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform