From acc09a684546e2c3b5c75875e23f1a6c438c55fb Mon Sep 17 00:00:00 2001 From: "eric.marchand" Date: Wed, 20 Dec 2023 22:00:52 +0100 Subject: [PATCH] Configuration property to set edit action as unique task --- .../qmobile/qmobiledatasync/utils/RuntimeDataHolder.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qmobiledatasync/src/main/java/com/qmobile/qmobiledatasync/utils/RuntimeDataHolder.kt b/qmobiledatasync/src/main/java/com/qmobile/qmobiledatasync/utils/RuntimeDataHolder.kt index 05a5ce2..cb740e5 100644 --- a/qmobiledatasync/src/main/java/com/qmobile/qmobiledatasync/utils/RuntimeDataHolder.kt +++ b/qmobiledatasync/src/main/java/com/qmobile/qmobiledatasync/utils/RuntimeDataHolder.kt @@ -42,7 +42,8 @@ open class RuntimeDataHolder( var tableActions: JSONObject, var currentRecordActions: JSONObject, var globalActions: JSONObject, - var inputControls: List + var inputControls: List, + var editActionHasUniqueTask: Boolean ) { companion object { @@ -95,6 +96,8 @@ open class RuntimeDataHolder( val logServer = appInfoJsonObj.getSafeString("crash.server.url") ?: "" val crashLogs = (appInfoJsonObj.getSafeBoolean("crash.manage") ?: true) && logServer.isNotEmpty() + val editActionHasUniqueTask = appInfoJsonObj.getSafeBoolean("action.edit.hasUnitTask") ?: false + return RuntimeDataHolder( initialGlobalStamp = appInfoJsonObj.getSafeInt("initialGlobalStamp") ?: 0, guestLogin = appInfoJsonObj.getSafeBoolean("guestLogin") ?: true, @@ -116,7 +119,8 @@ open class RuntimeDataHolder( tableActions = actionsJsonObj.getSafeObject("table")?.addActionId() ?: JSONObject(), currentRecordActions = actionsJsonObj.getSafeObject("currentRecord")?.addActionId() ?: JSONObject(), globalActions = actionsJsonObj.getSafeObject("global") ?: JSONObject(), - inputControls = FieldMapping.buildInputControlsBinding(inputControlsJsonArray) + inputControls = FieldMapping.buildInputControlsBinding(inputControlsJsonArray), + editActionHasUniqueTask = editActionHasUniqueTask ) }