Announcement
Collapse
No announcement yet.
Cases status field
Collapse
X
-
It is an array containing values to be used as "different from" definition for filtering purposes..... for example:
In script application/Espo/Modules/Crm/SelectManagers/CaseObj.php
Code:namespace Espo\Modules\Crm\SelectManagers; class CaseObj extends \Espo\Core\Select\SelectManager { protected function boolFilterOpen(&$result) { return [ 'status!=' => $this->getMetadata()->get(['entityDefs', $this->entityType, 'fields', 'status', 'notActualOptions']) ?? [] ]; } protected function filterOpen(&$result) { $result['whereClause'][] = [ 'status!=' => $this->getMetadata()->get(['entityDefs', $this->entityType, 'fields', 'status', 'notActualOptions']) ?? [] ]; } protected function filterClosed(&$result) { $result['whereClause'][] = [ 'status' => 'Closed' ]; } }
Code:"fields" { .... "status": { "type": "enum", "options": ["New", "Assigned", "Pending", "Closed", "Rejected", "Duplicate"], "default": "New", "style": { "Closed": "success", "Duplicate": "danger", "Rejected": "danger" }, "audited": true, "fieldManagerAdditionalParamList": [ { "name": "notActualOptions", "view": "views/admin/field-manager/fields/not-actual-options" } ], "notActualOptions": ["Closed", "Rejected", "Duplicate"] }, ... }
Last edited by telecastg; 07-26-2021, 02:29 PM.
- Likes 1
Leave a comment:
-
Okay, you're talking about settings of entity, yes? There you can define status field - enum. And based on that you can for example group cases in kanban view
Leave a comment:
-
Cases status field
Hi guys, quick question... In the Cases Status field the is a setting called 'Not Actual Options', can any one please tell me what it does?
Many thanks..
GarethTags: None
Leave a comment: