To show two collections on one page, add two Bean Master Detail builders.
You can place multiple Bean Master Detail builders on a single page to allow an object and its associated collections to be displayed together. For example, if the application has a collection of A objects and an A object has an associated collection of B objects, the Bean Master Detail builder responsible for showing B objects can draw its view from the currently selected A object. When the page renders the view of the selected A object, the correct associated B objects are displayed as well.
For example, you have two collections, Acollection
. The first one (Acollection
) refers to the variable holding that collection. The second one (Bcollection
) has as its collection the following value.
method in the Acollection
object returns a collection of Bcollection
The following inputs in the builder call editor for Acollection
can specify two different tags on the same page in the model.
Page in Model input in the View Detail Options group
Page in Model input in the Master / Table View group
Similarly, the same inputs in the builder call editor for Bcollection
can also specify two different tags on the same page in the model.
When that page is rendered, the current Acollection_viewObject
is used to populate the Acollection
view. The getBcollection
method is invoked to get the collection of Bcollection
objects to display in the Bcollection
The following ways can show different information in the table and the view.
Parent topic: Bean Master Detail builder: wpf7