Guide

Build models

Attributes

4 min readOpen in Neblex

Attributes are the choices and values that make up a configuration: the size of a rack, its color, the number of shelves, a delivery date. Each attribute belongs to one model. Open them from Config › Attributes: choose the model with Select Model, and the Attribute Designer lists its attributes with a search.

Create an attribute

  1. Start it. With the model selected, click New Attribute.
  2. Name it. The Name is unique within the model. Rules, functions, queries and layouts refer to the attribute by this name, so choose it carefully.
  3. Choose what it holds. Pick the Data Type, the Cardinality (one value or several) and the UI Type, as described below.
  4. Add the options if it is a choice, with their prices, lead times and images.
  5. Save it. Click Save Attribute. Then place it on the model's layout so it appears in the configurator.

Data types and how they are shown

Data TypeHoldsUI Type
StringText, usually a choice from options.One value: drop-down, radio buttons, text or text area. Several values: multi-select or text area.
NumberA number.One value: drop-down, radio buttons or number field. Several values: multi-select.
BooleanYes or no.Checkbox.
DateA date.Date picker.
Clause (long text)The wording of an agreement clause. See Agreements and clauses.Drop-down or radio buttons for variants, or a text area for free wording.
Display (read-only)A value shown to the person configuring but not typed by them, such as a calculated weight set by a rule or function.Shown as text.
Hidden (state only)A value the model keeps for its own logic and never shows, such as an intermediate result.Not shown.
Button (on-demand action)A button that runs a function when clicked, for example to look up a price from another system.A button, optionally with an Icon.

A multi-select can use the default style or show every option as a checkbox. For a button, choose the Action Function it runs.

Options

Choice attributes have options. Click + Option for each and fill in:

  • the option's value, unique within the attribute;
  • Cost: what choosing it adds to the configuration's cost;
  • List Price: what it adds to the price; it can be negative, for a cheaper alternative;
  • Lead Time Days: the lead time it brings, in whole days;
  • an image, which can show beside the option or, if the layout chooses, as a grid of pictures to pick from.

When a rule excludes an option, Excluded Behavior decides whether it is hidden (Hide excluded) or shown grayed out (Gray out excluded). Grayed-out options tell the person configuring that the option exists but is not available with their other choices.

Parts come from rules. Options carry a price, a cost and a lead time. The parts that go into the bill of materials are added by rules and functions, so one choice can add several parts, or parts can depend on a combination of choices. See Rules.

Options from a query

Instead of typing options, an attribute can take them from your data. Set Option Source to DQL Query and write a query over a data table, for example:

SELECT value, label FROM my_table WHERE category = ${attributes.Category}
  • ${attributes.Name} uses the current value of another attribute, so the options follow earlier choices. When that attribute changes, the options are fetched again. Write it without quotes; text values are quoted for you. The referenced attribute needs a one-word name (letters, digits, underscores).
  • Value Column and Label Column say which columns hold the stored value and the text shown. Without them, the first column is the value and the value is also the label.
  • A query returns at most 200 options.
  • Test Query runs it and shows the columns and the number of rows it returned.

Help for the person configuring

Help Content Type adds help next to the attribute: a Text Tooltip, or a link to an External URL, a Video Link, a Document Link or an Image Link. Use it to explain what a choice means or where a measurement comes from.

Change or delete attributes

Click Edit to change an attribute and Update Attribute to save. Neblex CPQ protects what depends on it: if a change or a delete would break a rule, function, query, layout or clause that uses the attribute, it is refused with Cannot save attribute or Cannot delete attribute and a list of what uses it. Change those first, or look them up with Where Used.

Removing an option's image while people are configuring the model leaves a broken image in their session until they start again.