Return to main navigation Page
Array Best Practices
- Configurable array sets must be created the proper way for the +/- add/remove buttons to appear or work .
- Create the array set BEFORE visiting the Set tab of the array attribute
- Ensure that the array control attribute is in the same group as the array set, and is not hidden.
- This order will always work:
- Create the array control attribute
- Create the array set
- Create the array attributes and add to the set
- If you created an array set in the wrong way,
you DO NOT need to delete your attribute and recreate it. Here are the
steps to fix an Array Set that is not showing the increment / decrement
- Do the following for each array in the array set:
- Go to the Array Attribute on the admin side.
- Go to the Set Properties tab.
- Change the Array Set from the real one to the [DEFAULT] one.
- Change the Array Control Attribute to the blank entry.
- Click Apply. *important step*
- Change the Array Set back to the real one.
- Click Update.
- Once you have done that for all arrays, the little icons should return.
- It is possible to have one Size attribute
control multiple arrays, but it is not recommended, since it will lead
to confusion in maintenance.
Recommendation Rules and Arrays
Set Type Recommendations will work for an array
attribute only if none of the values of those attribute elements is
changed by the user.
Once changed, the system treats it as an overwrite of
the attribute and will not perform a Set recommendation on any elements
that get added afterward.
- If you recommend a value for a string array of
”” (blank) or
$BM_UNCHANGED_STR$ (leave value unchanged), even if the value is blank, you will still get the recommendation message (“Don't select any value…”).
User Experience with Arrays
- There is quite a bit of BM behind-the-scenes
will affect performance, especially in IE.
When you add a new element to an array using the +/- buttons, the value it takes is the value of the previous last element (the now penultimate element).
Defaults are not respected in arrays.
- The recommendation text for an array attribute
always shows the variable name of the attribute, rather than the
display name, as for non-array attributes.
- Maximum number of rows in an array is 200.
- Multi-select menus are not possible in arrays.
Arrays & Table-based Rules
- Simple Table-based Rules operate per index; they will not operate across indexes.
- Attribute type limitations are consistent with existing simple Table-based Rules.
- If the Table column is numeric, then the Array Attributes must be numeric
Maximum Array size is 200.