diff --git a/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_case_view_configuration.xml b/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_case_view_configuration.xml
index 15917693c98..f801c2bf6ac 100644
--- a/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_case_view_configuration.xml
+++ b/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_case_view_configuration.xml
@@ -335,6 +335,28 @@
sort
+
+ headers_sort_mode_active
+ Active columns for sorting
+ Example: "meta-title,meta-creationDate"
+
+ sortModeActive: f.this;
+
+ String trimmed = sortModeActive.value?.replaceAll("\\s","")
+ if (sortModeActive.value != trimmed) {
+ change sortModeActive value { trimmed }
+ }
+
+
+
+ headers_sort_mode_direction
+ Default sort direction
+
+
+
+
+ desc
+
headers_options_holder
@@ -447,6 +469,11 @@
Vybrať zobrazenie
Nastavenie
Asociované zobrazenie
+ Aktívne stĺpce pre zoradenie
+ Napríklad: "meta-title,meta-creationDate"
+ Predvolený smer zoradenia
+ Vzostupne
+ Zostupne
Schaltflächentitel "Neuer Fall"
@@ -482,6 +509,11 @@
Wählen Sie einen Ansichtstyp
Einstellungen
zugehörige Ansicht
+ Aktive Spalten zum Sortieren
+ Beispiel: "meta-title,meta-creationDate"
+ Standard-Sortierrichtung
+ Aufsteigend
+ Absteigend
@@ -850,6 +882,37 @@
outline
+
+ headers_sort_mode_active
+
+ editable
+
+
+ 0
+ 2
+ 1
+ 4
+ 0
+ material
+ outline
+
+
+
+ headers_sort_mode_direction
+
+ editable
+ required
+
+
+ 4
+ 2
+ 1
+ 1
+ 0
+ material
+ outline
+
+
associated_view
diff --git a/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_task_view_configuration.xml b/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_task_view_configuration.xml
index 1a19b505db1..0e6ff962a4f 100644
--- a/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_task_view_configuration.xml
+++ b/application-engine/src/main/resources/petriNets/engine-processes/menu/tabbed_task_view_configuration.xml
@@ -274,6 +274,28 @@
sort
+
+ headers_sort_mode_active
+ Active columns for sorting
+ Example: "meta-title,meta-caseTitle"
+
+ sortModeActive: f.this;
+
+ String trimmed = sortModeActive.value?.replaceAll("\\s","")
+ if (sortModeActive.value != trimmed) {
+ change sortModeActive value { trimmed }
+ }
+
+
+
+ headers_sort_mode_direction
+ Default sort direction
+
+
+
+
+ desc
+
headers_options_holder
@@ -342,6 +364,11 @@
Zobrazenie úloh
Všeobecné
Vymazať filter
+ Aktívne stĺpce pre zoradenie
+ Napríklad: "meta-title,meta-caseTitle"
+ Predvolený smer zoradenia
+ Vzostupne
+ Zostupne
Neue Filter auswählen
@@ -368,6 +395,11 @@
Menüeintrageinstellungen
Aufgabenansicht
Filter entfernen
+ Aktive Spalten zum Sortieren
+ Beispiel: "meta-title,meta-caseTitle"
+ Standard-Sortierrichtung
+ Aufsteigend
+ Absteigend
@@ -676,6 +708,37 @@
outline
+
+ headers_sort_mode_active
+
+ editable
+
+
+ 0
+ 2
+ 1
+ 4
+ 0
+ material
+ outline
+
+
+
+ headers_sort_mode_direction
+
+ editable
+ required
+
+
+ 4
+ 2
+ 1
+ 1
+ 0
+ material
+ outline
+
+
diff --git a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewBody.java b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewBody.java
index dd6fbc801fd..acf83813346 100644
--- a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewBody.java
+++ b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewBody.java
@@ -25,6 +25,8 @@ public class TabbedCaseViewBody extends ViewBody {
private boolean allowHeaderTableMode = true;
private List headersMode = new ArrayList<>(List.of("sort", "edit", "search"));
private String headersDefaultMode = "sort";
+ private List headersSortModeActive;
+ private String headersSortModeDirection = "desc";
private List defaultHeaders;
private boolean isHeaderModeChangeable = true;
private boolean useDefaultHeaders = true;
@@ -64,6 +66,10 @@ protected ToDataSetOutcome toDataSetInternal(ToDataSetOutcome outcome) {
this.headersMode == null ? new ArrayList<>() : this.headersMode);
outcome.putDataSetEntry(TabbedCaseViewConstants.FIELD_HEADERS_DEFAULT_MODE, FieldType.ENUMERATION_MAP,
this.headersDefaultMode);
+ outcome.putDataSetEntry(TabbedCaseViewConstants.FIELD_HEADERS_SORT_MODE_ACTIVE, FieldType.TEXT,
+ this.headersSortModeActive != null ? String.join(",", this.headersSortModeActive) : null);
+ outcome.putDataSetEntry(TabbedCaseViewConstants.FIELD_HEADERS_SORT_MODE_DIRECTION, FieldType.ENUMERATION_MAP,
+ this.headersSortModeDirection);
outcome.putDataSetEntry(TabbedCaseViewConstants.FIELD_DEFAULT_HEADERS, FieldType.TEXT,
this.defaultHeaders != null ? String.join(",", this.defaultHeaders) : null);
outcome.putDataSetEntry(TabbedCaseViewConstants.FIELD_IS_HEADER_MODE_CHANGEABLE, FieldType.BOOLEAN,
diff --git a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewConstants.java b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewConstants.java
index ca8e392d756..993c7467005 100644
--- a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewConstants.java
+++ b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedCaseViewConstants.java
@@ -17,6 +17,8 @@ public class TabbedCaseViewConstants extends ViewConstants {
public static final String FIELD_ALLOW_HEADER_TABLE_MODE = "allow_header_table_mode";
public static final String FIELD_HEADERS_MODE = "headers_mode";
public static final String FIELD_HEADERS_DEFAULT_MODE = "headers_default_mode";
+ public static final String FIELD_HEADERS_SORT_MODE_ACTIVE = "headers_sort_mode_active";
+ public static final String FIELD_HEADERS_SORT_MODE_DIRECTION = "headers_sort_mode_direction";
public static final String FIELD_IS_HEADER_MODE_CHANGEABLE = "is_header_mode_changeable";
public static final String FIELD_USE_CASE_DEFAULT_HEADERS = "use_case_default_headers";
}
diff --git a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewBody.java b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewBody.java
index 26846664402..7db48762253 100644
--- a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewBody.java
+++ b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewBody.java
@@ -20,6 +20,8 @@ public class TabbedTaskViewBody extends ViewBody {
private String viewSearchType = "fulltext_advanced";
private List headersMode = new ArrayList<>(List.of("sort", "edit"));
private String headersDefaultMode = "sort";
+ private List headersSortModeActive;
+ private String headersSortModeDirection = "desc";
private boolean isHeaderModeChangeable = true;
private boolean allowHeaderTableMode = true;
private boolean useDefaultHeaders = true;
@@ -55,6 +57,10 @@ protected ToDataSetOutcome toDataSetInternal(ToDataSetOutcome outcome) {
this.useDefaultHeaders);
outcome.putDataSetEntry(TabbedTaskViewConstants.FIELD_DEFAULT_HEADERS, FieldType.TEXT,
this.defaultHeaders != null ? String.join(",", this.defaultHeaders) : null);
+ outcome.putDataSetEntry(TabbedTaskViewConstants.FIELD_HEADERS_SORT_MODE_ACTIVE, FieldType.TEXT,
+ this.headersSortModeActive != null ? String.join(",", this.headersSortModeActive) : null);
+ outcome.putDataSetEntry(TabbedTaskViewConstants.FIELD_HEADERS_SORT_MODE_DIRECTION, FieldType.ENUMERATION_MAP,
+ this.headersSortModeDirection);
outcome.putDataSetEntry(TabbedTaskViewConstants.FIELD_SHOW_MORE_MENU, FieldType.BOOLEAN,
this.showMoreMenu);
diff --git a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewConstants.java b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewConstants.java
index db5ad865a66..f37ec7bf64f 100644
--- a/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewConstants.java
+++ b/nae-object-library/src/main/java/com/netgrif/application/engine/objects/workflow/domain/menu/configurations/TabbedTaskViewConstants.java
@@ -9,6 +9,8 @@ public class TabbedTaskViewConstants extends ViewConstants {
public static final String FIELD_DEFAULT_HEADERS = "default_headers";
public static final String FIELD_HEADERS_MODE = "headers_mode";
public static final String FIELD_HEADERS_DEFAULT_MODE = "headers_default_mode";
+ public static final String FIELD_HEADERS_SORT_MODE_ACTIVE = "headers_sort_mode_active";
+ public static final String FIELD_HEADERS_SORT_MODE_DIRECTION = "headers_sort_mode_direction";
public static final String FIELD_IS_HEADER_MODE_CHANGEABLE = "is_header_mode_changeable";
public static final String FIELD_ALLOW_HEADER_TABLE_MODE = "allow_header_table_mode";
public static final String FIELD_USE_DEFAULT_HEADERS = "use_default_headers";