company logo

Change collection (CC)

The command allows closing, opening or switching to an opened collection. Passing an invalid collection name will also be accepted, but later commands may fail. Calling the command without parameters shows the current hierarchy. Collection numbers are prefixed with following meaning:

  • + - An istance is selected in the collection
  • * - collection is the currently active collection
  • - - no instance selected in the collection

Parameters:

  • prop_path - extent or property name for the collection to be opened. One may also define an access path or view path as property path.
  • col_id - change to an opened collection in the hierarchy.
  • . - close current collection and return to parent. One may also close more than one collections by passing more than one dot.
  • / - close all collections in a hierarchy.
  • -Dn - re-direction to other data source.

Syntax:

  cc [ prop_path | coll_id | . | / ] -Dn

Examples:

  cc Person     // Open the 'Person' extent in the current data source

                // In this case, no collections must be opened.

  cc /Person    // Open the 'Person' collection in the current data

                // source after closing the currently opened hierarchy

  cc .          // Close last collection in hierarchy

  cc ..children // Close the last two collections and open the collection

                // 'children'

  cc 2          // Switch to collection 2 in the current hierarchy  

                // without closing

  cc            // Displays the current collection hierarchy and

                // collection ids