Just to make sure I didn't miss a step...


Author
Message
Robert Carl Johnson
Robert Carl Johnson
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search