<smartFilterBar:SmartFilterBar id="smartFilterBar" useToolbar="false" smartVariant="VariantId"
persistencyKey="SmartFilterPKey" entitySet="EntitySetName" enableBasicSearch="false">
<smartFilterBar:controlConfiguration>
<smartFilterBar:ControlConfiguration key="Key1" visibleInAdvancedArea="true">
<smartFilterBar:customControl>
<Custom Filed1...
value="{customFilterModel>/value1}">
<smartFilterBar:customControl>
</smartFilterBar:ControlConfiguration>
</smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="Key2" visibleInAdvancedArea="true">
<smartFilterBar:customControl>
<Custom Filed2..
value="{customFilterModel>/value2}">
<smartFilterBar:customControl>
</smartFilterBar:ControlConfiguration>
</smartFilterBar:controlConfiguration>
</smartFilterBar>
<smartFilterBar:SmartFilterBar id="smartFilterBar" useToolbar="false" smartVariant="VariantId"
persistencyKey="SmartFilterPKey" entitySet="EntitySetName" enableBasicSearch="false"
beforeVariantFetch="onBeforeVariantFetch" afterVariantLoad="onAfterVariantLoad">
<smartFilterBar:controlConfiguration>
<smartFilterBar:ControlConfiguration key="Key1" visibleInAdvancedArea="true">
<smartFilterBar:customControl>
<Custom Filed1...
value="{customFilterModel>/value1}">
<smartFilterBar:customControl>
</smartFilterBar:ControlConfiguration>
</smartFilterBar:ControlConfiguration>
<smartFilterBar:ControlConfiguration key="Key2" visibleInAdvancedArea="true">
<smartFilterBar:customControl>
<Custom Filed2..
value="{customFilterModel>/value2}">
<smartFilterBar:customControl>
</smartFilterBar:ControlConfiguration>
</smartFilterBar:controlConfiguration>
</smartFilterBar>
onBeforeVariantFetch: function () {
let customFiltersObject = this.getModel("customFilterModel").getData();
this.byId("smartFilterBar").setFilterData({
_CUSTOM: customFiltersObject
});
}
onAfterVariantLoad: function () {
let filterData = this.byId("smartFilterBar").getFilterData();
this.getModel("customFilterModel").setData(filterData._CUSTOM);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
14 | |
11 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 |