Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find before Add in cListObjEdit
Message
From
27/11/2000 09:46:55
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Find before Add in cListObjEdit
Miscellaneous
Thread ID:
00445653
Message ID:
00445653
Views:
51
Kevin, et. al.,

Maybe you have run across this scenario before:

I have two 3 business objects, Individual, Patient and Contact

Each Individual is either a Patient or a Contact or Both
Each Patient has one or more Contacts
Each Contact has one or more Patients

I also have a PatientContact table relating Contacts to Patients directly.

When I add a Contact, I always add a PatientContact record, but not necessarily a Contact record. The new Contact may be an existing Contact for other Patients.

A new Contact record is added if the Contact is new to the system or is in the system as an existing Patient.

My Contact page is a cListObjEdit on a page in the Patient Form pageframe. What I need is to call a FindForm after pressing the Add button on the cListObjEdit, then check the FindForm return value to determine if I need to add a Contact record.

Have you ever done anything like this?

If so, could I get the code?

TIA

Rex
Next
Reply
Map
View

Click here to load this message in the networking platform