Question
Mobile add multiple or array of filter to store.loadPage
17:15 Sep 04, 2023
Hi Community,
What is the correct syntax to add multiple or array of filter to store.loadPage in mobile. We've tried below but it is not working.
Like
1 comments
18:09 Sep 04, 2023
Hello Fulgen,
Something like that:
...
var filtersConfig = {
type: Terrasoft.FilterTypes.Group,
logicalOperation: Terrasoft.FilterLogicalOperations.And,
subfilters: [
{
property: "Order",
value: currentOrderId
},
{
property: "Product",
value: productId
}
]
};
...
store.loadPage(1, {
isCancelable: true,
filters: Ext.create("Terrasoft.Filter", filtersConfig),
queryConfig: queryConfig,
callback: function(loadedRecords, operation, success) {
...
Show all comments