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 ) }