Configure sets
Sets group related fields into repeatable collections, allowing administrators to streamline configurations and reduce redundancy. They enable dynamic, table-like data entry, support aggregates, and simplify managing repeated questionnaires or configurable options in CPQ.
Sets allow the administrator to identify a number of fields in a group. Once associated with a set, the fields may then be replicated an indefinite number of times on the end-user UI in a matrix format. Sets reduce the number of fields and rules that must be defined for use cases that repeat fields and rules. The maximum number of set records (the number of times a group of fields can be repeated) is 2000.
In this set, three fields (Sandwich Choice, Side Choice, and Drink Choice) are defined in a set; the set is repeated three times:
Display types
Sets can be displayed in several ways.
- As table rows:
- As table columns:
- As list rows:
- As a set repeater:
You can manage sets by using the Layout Wizard. For more information about sets and layouts, see Using sets in layouts.
Adding and removing set rows
In the end-user UI, the user has four ways to increment or decrement set records:
- To add a record to the bottom of the set, click the green plus in the upper right corner.
- To add or remove records from the bottom of the set, edit the Size field and click Change Size.
- To insert a record between two existing records, hold the cursor between them in the Index column.
- To add records relative to the current record or to delete a record, use the menu in the Index column.
For more information about managing sets, see Using sets in layouts and How sets interact with the rest of a blueprint.
Creating a set
Sets can be added in the same two areas you would create fields: the blueprint to which to add the set, and the fields administration tab.
Select the set field type from among the list of options:
Give your new set a name and choose from the size types.
The size type cannot be changed after the set is saved. Therefore, keep the following in mind:
- The set field determines the number of records that will be displayed in the set. This numeric field can be visible and edited by a user or set by determination action, as the case requires.
- The associated picklist leverages a picklist field to determine how many records to show in the set. When this option is selected, the admin must identify the field that will drive the set size. When the set type is Associated
Picklist, CPQ creates two additional fields in the set:
- Option Value: The value of each option in the set, represented as a read-only text field.
- Select Option: Tracks whether each option of the picklist is selected.
For more information, see Creating an associated picklist set.
The next screen is the set screen, where the admin can add fields to the set, enforce distinct values, and create aggregates.
To add a field to the set, search for the name of the field to be added to the set, and then click +.
Any field in the set can have the “Distinct Values” option enabled. When this is true, each index of the set must have a unique value for the field. This setting only applies to non-empty fields.
When you create an aggregate for a field in the set, options include Average, Count, Maximum, Minimum, and Sum. For example, a sum aggregate on a number field called Quantity might store the sum of all Quantity field values in the set. Aggregates function as a field external to the set and can be used in global rules.
For more information on set aggregates, see Creating set aggregates.
When using sets in a configuration, it’s important to understand the scope of fields in the set and what can and cannot be accomplished when creating rules. See How sets interact with the rest of a blueprint.