Activity status lookup filtering
15:13 Oct 27, 2022
Hello,
In the Status lookup I have 3 values: Canceled, In progress, No answer.
Depending on the Category, for category="Call" and category="Mail" I want all these 3 values to appear in the status, but for category="meeting", I want the value "no answer" not to be displayed.
How can I do this filtering for ActivityMiniPage and ActivityPage?
Thanks,
Andreea
Like
1 comments
12:08 Nov 01, 2022
Hi,
You can do it by using filters in the attribute, here is a small example:
attributes: { "Status": { "dataValueType": Terrasoft.DataValueType.LOOKUP, "lookupListConfig": { "filters": [ function() { var filterGroup = Ext.create("Terrasoft.FilterGroup"); var category = this.get("ActivityCategory").value; if (category == '03df85bf-6b19-4dea-8463-d5d49b80bb28'){ var statusFilter = Terrasoft.createColumnFilterWithParameter( Terrasoft.ComparisonType.NOT_EQUAL, "[ActivityStatus:Id].Code", "Canceled"); filterGroup.add("StatusFilter", statusFilter); } return filterGroup; } ] } } },
Show all comments