ChildAutoFilter, what I'm missing?


Author
Message
Malcon
Malcon
StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)
Group: Forum Members
Posts: 28, Visits: 93
Follow the steps in the manual strata, but I can not do BO automatically filter the data through the property ChildAutoFilter. I used the base StrataFrameSample for testing, with the tables Orders and OrdersItens;
Did the relationship between the BO boOrdersItens, check the ChildAutoFilter boOrders when he brought the two MOBs for my application, the MARQUIER ParentBusiness of boOrdersItens with boOrders.
When I surf the boOrders, it should not automatically filter the boOrdersItens?
I'm putting my application attached.
Attachments
WindowsApplication1.rar (145 views, 88.00 KB)
Replies
Malcon
Malcon
StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)StrataFrame Novice (70 reputation)
Group: Forum Members
Posts: 28, Visits: 93
Edhy, now you left me with more doubts ...
I understand that if I use a FillAll () on all my tables had been slow, but I would like to automate the process of navigation. Would not want to do more of the filter Bo Bo navigate the Child Parent. In strataflix example, when there is the search for parent BO, Bo automatically all children will be filtered.
In the simple example I did, I would like the strata only search the data of BoOrderItesn, if I need to perform any kind of filter. We saw examples of strata that is possible, but I could not reproduce the same.
To summarize the whole topic: How to perform strataframe fill (or rowMach ou cascate) BOs in children?
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Malcon (10/4/2010)
Edhy, now you left me with more doubts ...


Sorry about the doubts, but believe it me, it is very simple and easy.

Again, you are responsible for loading the data.  SF has some predefined methods like FillByParent or FillByParentPK which will help you filter out the data, but how and when to use those is up to the developer to code.

In your sample you where not getting the data for the child bo, then nothing was shown (that makes perfect sense).  I show you that using the ParentBO.Navigated, you can get the child data, or if you prefer to load them all at a single place, you can use the ChildBO.FillByParent(ParentBO), but again be aware that if you are loading a lot of records, that could slow down the form.

In the case of StrataFlix, this is a very unique logic because it is designed to show only one single record in the ParentBO, then it will load all child records for that parent record, but you will not be able to navigate the parent, since it is designed to only show a single parent record at a time.  It is just another approach, and you can mix and match all approaches based on your application's requirements.

Edhy Rijo

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