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:

Master Detail with XdevTables

      

  1. Add an XdevTable to the GUI Builder.
  2. Drag an entity, e.g. Order, to the XdevTable. Create multiple columns under Properties > Entity > Properties , e.g. orderdateshipname.
  3. Add a second XdevTable next to the XdevTable.
  4. Drag an entity, e.g. Orderdetail, to the XdevTable. Create multiple columns underProperties>Entity>Properties, e.g. unit price,quantity,discount.
  5. Select Properties > Master component > table 


Master Detail-Detail with XdevFieldGroup


  1. Add a XdevComboBox in the GUI Builder.
  2. Drag an entity, e.g. Order to the XdevComboBox. Specify a column under Properties > Entity > Property, e.g. shipname.
  3. Add an XdevTable under XdevComboBox.
  4. Drag an entity, e.g. OrderDetail to the XdevTable. Under Properties > Entity > Properties create multiple columns, e.g. unit price, quantity, product > product name.
  5. Select Properties> Master component > comboBox.
  6. Drag the same entity next to the XdevTable and generate a   XdevFieldGroup. 
  7. 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.