WinStudio

Binding Collections to a Form

The act of adding an IDO collection to a form automatically binds the collection to the form. Most forms have IDO collections bound to them at the time the form is created.

If a form has no bound IDO collection, the first IDO collection that you add automatically becomes the primary collection.  

You can also add other IDO collections to a form that is already bound to a primary collection. These secondary collections can be used as subcollections.

Once added, you can remove any secondary collection from a form. You cannot remove a primary collection.

When working with forms and collections, you can:

Adding an IDO collection to a form

To add a collection to a form:

  1. With a form open in Design Mode, select the Form property sheet.
  2. Click the Collections tab.
  3. In the hierarchical tree at the top of the property sheet, click the Collections node.
  4. In the toolbar above the tree, click the  New icon.
  5. In the property grid, specify an IDO in the Collection property.
  6. In the property grid, specify a name in the Collection Name property.
  7. Set other collection properties as needed.
  8. Save.

Editing IDO collection specifications

To edit specifications for a collection bound to a form:

  1. With a form open in Design Mode, select the Form property sheet.
  2. Click the Collections tab.
  3. In the hierarchical tree at the top of the property sheet, select the collection to edit.
  4. In the property grid, edit the collection properties as needed.
  5. Save.

Removing an IDO collection from a form

To remove a secondary collection from a form:

  1. With a form open in Design Mode, select the Form property sheet.
  2. Click the Collections tab.
  3. In the hierarchcal tree at the top of the property sheet, select the secondary collection to remove.
  4. In the toolbar above the tree, click the Delete icon.
  5. When prompted to confirm, click Yes.

Related Topics

Edit Collection Specification for Subcollection Dialog Box

Tip: Referencing Collections Bound to Forms or Grids

Tip: Refreshing Collections

Understanding Bound Forms

Understanding Forms with Collections

Understanding Forms with Subcollections