Business Logic, Processes and Web Services for Characteristic Filtering (#10831)
The web method Inventory.GetCharacteristicInSearchResultsFiltered gets all distinct values for a specified Item Characteristic of Item matches within an Item search result that has been optionally filtered by one or more filter selections.
ItemCharacteristics_Filter Widget (#10832)
Available Widget Options
- pageSize - the maximum number of options that will appear in a filter list. The default is 10.
- minimumToShow - the minimum number of options that must exist in order to show a filter. The default is 2.
- characteristicPaths - a comma-separated list of Characteristic Paths to be used, one for each possible filter. Example 'Specifications/Gears,Specifications/Color'
- enableAccordion - indicates whether or not the filter lists are collapsible. Default true.
- showCollapsed- option to collapse all filters on load. Default is false.
showItemCount - option to show the matched item count next to each filter option. Default is true.
itemCountFormat - the string format for the item count when displayed where the replacement string of {0} is the number. Default is '({0})'
- activeFiltersLabelText - the text displayed as the label to the active filter area when filters are selected. Default is 'Active Filters:'
- preferredFilter - a characteristic filter that will leave the chosen filter to remain open, even if showCollapsed is set to true. In order for it to display on the top of the list it will need to be placed as the first entry into characteristicPaths as well.
|
Copy Code
|
<Control src="LoadWidgetControl.ascx" FileLocation="ItemCharacteristics_Filter.html"
Options="
pageSize: 10,
characteristicPaths:'Specifications/Gears,Specifications/SIZE,Specifications/Color',
minimumToShow: 2,
enableAccordion: true,
showCollapsed: false,
activeFiltersLabelText: 'Active Filters:',
preferredFilter: 'Specifications/Gears'"/>
|
Auto sort characteristic value by List Sort Order in Inventory.GetCharacteristicInSearchResultsFiltered web service operation (#10945)
See: https://dovetail.tpondemand.com/RestUI/Board.aspx#page=userstory/10831
See Also