Question about setting up a Parent Child Demo...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
I know I started an exhaustive thread on this months ago, but you guys have made some changes to the framework so I have new questions. Hehe

Ok, I'm trying to re-familiarize myself with the BO relationship aspect of the framework. I printed out all the tutorials from the newest version of the help file and re-worked my way through all of the related ones until i got to Tutorial_WinVB_14. Tutorial 14 shows me how to create the child BO and make the necessary settings to link the child BO to the parent.

At the end of tutorial 14 it says: "Designing a child form that will show the use of a business object relationship is beyond the scope of this tutorial."

So now my question is: Since I've worked my way through all the tutorials up through 14 and I want place a grid on the CustomerMaintenance form to show the related orders, how do I do this?

I thought you guys used to have a grid that was simply an inherited version of the Datagridview but I couldnt find it. I tried to drop a standard DataGridView onto the form using a BusinessBindingSource control but that didnt work.

Since there have been some changes to the framework since the last time i asked this question... could you please explain it again?

Thanks

Replies
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
Ok, I'll try that.

The other question I had about Tutorial 14 was... when you create the orders BO you never mentioned in the tutorial that you needed a fill method created.  Is that right?

I understand the parent has a fill method and the link between the parent and the child is created but how does the child BO get populated with the related records?

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ah, the reason that I never created a fill method was because the BusinessLayer class already has a FillByParent() and a FillByParentPrimaryKey() that can be used to pull child records of a parent business object.  You can also write your own fill method, and then filter the records through the ChildAutoFilterOption on the parent business object.
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