CabMasterPro User Guide
In This Topic
    Define Control Sets
    In This Topic

    Control Sets provide the new features necessary for the dynamic sidebar support.

    When designing a collection of friendly pages, sometimes a little (or big) group of controls needs to be repeated on different friendly pages. Control Sets allow you to define a group of controls and reuse that group multiple times. You can also parameterize a Control Set so each usage of it can be called with parameters to vary the details within the group.

    Control Sets are always named. This means you can use the control set by referencing it by its name. And the name used can be formula controlled, which allows you to dynamically select a control set based on the current value of a middleware variable.

    You can therefore define a “Control Set” in middleware and reference it via a variable at item, page, drawing or library level. This will mean we can define sidebar friendly page groups for all items in a library and override as necessary for certain items.

    Basic Overview

    To create a control set, use the Define Control Sets page to create a control set, then you can add tabs to the set using Define Tabs and controls the the tab using Define Questions.

    To use a control set, there are 3 options:

    1. Create an empty group named as ":ControlSetName"
      • This will include all tabs and controls in the control set.
    2. Create a tab within an existing group named as ":ControlSetName" -
      • This will include the first tab from the control set into the group.
    3. Create a control on an existing tab using the new control type "Control Set", and set the question to "ControlSetName".
      • This will include the contents of the first tab of the control set inline into the page.

    Control set names can specify a context. For example, if there is a "ControlSetName" at both item and drawing level, you can use "Drawing.ControlSetName" to grab the drawing-level set.

     

    Example 1

    1. The Answers & Setup > Define Control Sets page defines a new control set called “DavesControlSet”.
    2. Then in Define Groups it was added, referring to it as :DavesControlSet

    Example

    Example 2

    Download ControlSetParams.qid to use the following drawing level example.

    The Define Control Sets page defines new control sets.

     

    Then added in Define Groups.