Group: Forum Members
Posts: 48,
Visits: 130
|
Hi all. Ok, say I have a Inventory header table and a Inventory detail table (a one to many relationship). I have created a maint form and have populated my InventoryHeaderBO on it (Parent) with edit fields. Now I have below a datagrid for the InventoryDetailBO (Child).
I have placed InventoryHeaderBO, InventoryDetailBO and InventoryBBS ( A Business Binding Source) on my form and set them:
Step 1. I set the Child-Parent Relationship in the Child BO to the proper key columns
Step 2. Set the Parent BO on the child BO to the InventoryHeaderBO
Step 3. Set the child BO ChildAutoFilterOption to MatchCurrentRow
Step 4. In the form load I call the InventoryHeaderBO FillTop100 sub
Step 5. Set the grid to the InventoryDetailBBS
Now, IF I understand what I have read in the docs and in various threads, I do NOT have to make a call to FillbyParentPrimaryKey because I set The ChildAutoFilterOption to MatchCurrentRow which should automagically keep things in sync with the parent records. Is that correct?
Did I leave any steps out?
If not, why isn't my form working as it should?
Regards,
Robert
|