Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 -- Complicated view
Message
From
16/12/1996 15:21:44
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00015247
Message ID:
00015262
Views:
32
>>I'm attempting to create a complicated view of some M-M relationships. This will be a user form for a security system. The form will contain a pageframe..page 1 is the user information, Page 2 the groups the user belongs to (selected via a mover), and Page 3 the additional rights the user has (set via a grid). My files are layed out like this (I've only included pertinent fields):
>>
>>Users
>>-------------
>>pkUsers (primary Key)
>>UserId
>>
>>Groups
>>------------
>>pkGroups (primary Key)
>>
>>UserGrp
>>-------------
>>pkUserGrp (primary key)
>>rkUsers (relates to Users.pkUsers)
>>rkGroups (relates to Groups.pkGroups)
>>
>>Items (All possible items that you can assign rights)
>>---------------
>>pkItems (primary Key)
>>
>>UserItem
>>--------------
>>pkUserItem (primary Key)
>>rkUsers (relates to User.pkUsers)
>>rkItems (relates to Items.pkItems)
>>
>>So, UserGrp is used to link Users.dbf to Groups.Dbf and UserItem is used to link User.dbf to Items.dbf
>>
>>This should be setup so that the user will enter a UserId to update and then a parameterized view will be populated. My question is, how do I create the view? I keep getting errors from the view designer that certain key linking fields can't be found. The exact field varies, depending on the order that I add tables to the view designer.
>
>how is your dbc set up? we've done this a few times and haven't found a way to set the relations in the dbc wo/ running into problems w/ them. in the end, we just left the relations out and added them based on which end of the looking glass we were using...

The tables are related to each other as described. There is one additional table in the DBC that I didn't discuss because it is not related to the problem. The additional table is GrpItem.Dbf and contains the linking codes for Groups.dbf to Items.Dbf.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform