Master Detail
To create a master-detail view, you simply connect two UI components. The connection is established by assigning a master component to the detail component. In addition, the following requirements must be met:
- The UI components that are used must be suitable for the data output; e.g., XdevTable, XdevListSelect or derived components.
- Each UI component must be connected to an entity.
- The relation between the entities must be a 1:n relation.
- All of the UI components in use must be in the same view.
It is possible to have several connections in succession; e.g. master detail-detail. The UI components used may be of the same type. However, this is not essential. All combinations are possible. The RapidClipse framework automatically takes care of database queries.
Suitable UI components:
- XdevTable
- XdevTree
- XdevComboBox
- XdevListSelect
- XdevTwinColSelect
- XdevFieldGroup -Â Can only be used as a detail component
Master Detail with XdevTables
   Â
- Add an XdevTable to the GUI Builder.
- Drag an entity, e.g. Order, to the XdevTable. Create multiple columns under Properties > Entity > Properties , e.g. orderdate, shipname.
- Add a second XdevTable next to the XdevTable.
- Drag an entity, e.g. Orderdetail, to the XdevTable. Create multiple columns underProperties>Entity>Properties, e.g. unit price,quantity,discount.
- Select Properties > Master component > tableÂ
Master Detail-Detail with XdevFieldGroup
- Add a XdevComboBox in the GUI Builder.
- Drag an entity, e.g. Order to the XdevComboBox. Specify a column under Properties > Entity > Property, e.g. shipname.
- Add an XdevTable under XdevComboBox.
- Drag an entity, e.g. OrderDetail to the XdevTable. Under Properties > Entity > Properties create multiple columns, e.g. unit price, quantity, product > product name.
- Select Properties> Master component > comboBox.
- Drag the same entity next to the XdevTable and generate a  XdevFieldGroup.Â
- Select the XdevTable and then choose Properties > Connected form > fieldGroup.
XDEV Software Corp. - One Embarcadero Center, San Francisco, CA 94111, US
Copyright © 2015. XDEV Software Corp. All rights reserved.