FIlter groupe in mobile application busness rules

I am reaching out to seek guidance on creating a custom filter group with a logical OR operator for the purpose of filtering a lookup in our mobile application.

We are currently using the Terrasoft SDK for our mobile application development. Specifically, we are attempting to implement a custom filter group that allows us to filter a lookup based on multiple conditions with the logical OR operator and display records with specific statuses .

Here is an example of the code we have tried:

 

Terrasoft.sdk.Model.addBusinessRule("Activity", {

    ruleType: Terrasoft.RuleTypes.Filtration,

    events: [Terrasoft.BusinessRuleEvents.Load],

    triggeredByColumns: ["UsrActuer"],

    filters: Ext.create("Terrasoft.FilterGroup", {

        logicalOperation: Terrasoft.FilterLogicalOperations.Or,

        items: [

            Ext.create("Terrasoft.Filter", {

                modelName: "UsrActeur",

                property: "Usrstatutdeconversion",

                value: "08778421-4d4a-45d6-9dc0-05871d5b1e5e"

            }),

            Ext.create("Terrasoft.Filter", {

                modelName: "UsrActeur",

                property: "Usrstatutdeconversion",

                value: "c1c775a9-39c3-4290-a0ed-f56ee0640ea4"

            }),

            Ext.create("Terrasoft.Filter", {

                modelName: "UsrActeur",

                property: "Usrstatutdeconversion",

                value: "981ed116-cd83-4da3-93b5-5e7d4d0c139e"

            })

        ]

    })

});

Like 1

Like

2 comments

Hello,



We have an article on the Community platform that explains how to set up a filter group with a logical OR operator in the mobile application. You can find it at https://community.creatio.com/articles/setting-filter-mobile-application

Please note that this solution is only applicable to Classic UI and not the Freedom UI.

Artem Smyrnov,

i try this one but it didn't work 

 

Show all comments