|<< Step 1: Models Setup||Step 3: Linking Everything Together >>|
In this article:
- Feature setup
- Option setup
- Additional information
- Next step
We have finished configuring our models to be stretch-compatible. Now let us look at setting up our features. We will be looking at the Feature tab of Catalogue Creator.
In most cases, we will need a feature for each measure that was added to our model. This is so that we can define their domain of allowed values.
Features for measures
Let's add two features for the two measures we created in our model. We will need to look at two specific cells:
- Numeric Order - By checking this cell, the options of the feature will be used as numeric values instead of text. This cell must be checked for features used for stretching.
- Decimal Places - This cell becomes available only if Numeric Order is checked. The number inputted here represents the number of decimal places when displaying the feature's value in the Calculation Dialog and when exporting it to OFDA XML and SIF formats. Currently it does not affect the decimal places of its feature in the properties window or anything else.Calculation Dialog
We've created our features, and now we need to add options to them. These options will hold all the allowed ranges. They define the domain of values that the model is allowed to be stretched to. We can associate multiple ranges with a single option where each range is displayed as a separate row.
Here's a quick explanation of each cell:
- Expandable - Show/hide all of an option's ranges.
- Code Range Min. - Minimum value of the range.
- Code Range Max. - Maximum value of the range.
- Code Range Inc. - Increment between values of a range. If no number is inputted, any value between the minimum and maximum is allowed (continuous range).
- Discrete Numbers - Individual valid numbers that aren't defined by a code range. Multiple comma-separated numbers can be entered.
In the examples above, our product's depth only has the range:
- [600, 602, ..., 1998, 2000]
Width has multiple ranges that forms it's domain:
- [1000, 1050, ...., 1950, 2000]
- [2200, 2400, ...., 2800, 3000]
- [4001, ..., 5000]
It also has the discrete number 4000. Another thing to note is that the [4001, ..., 5000] range is contained within a second option. This option has a different price associated with it. When the product has its width stretched to 4001 or more, it will switch to the 2nd option and automatically apply the price associated with it.
Index cell clicked
To delete one of the ranges of an option, expand the option and then select the index cell and press the Delete key. This will remove the entire row.
Modified ranges shift downwards
Row shifts to the bottom when modified
When a code range is changed, it will be shifted to the bottom of the option's range list.
Discrete numbers inside code ranges
Discrete number between code ranges allowed
We mentioned that discrete numbers are for numbers that aren't defined by a code range. Trying to add a discrete number that is already a part of a code range will simply fail. However, we are able to add discrete numbers that are between a code range's min/max values but are not part of the code range because of the range's increment.
In the example above, the range used is [600, 602, ..., 2000]. the number 601 is not within that range and so can be added as a discrete number.
That is all we need to do to prepare our features. The allowed ranges have been created and can now be used. We will finally look into tying everything together in our catalogue product. Continue reading on Step 3: Linking Everything Together.
Please sign in to leave a comment.