Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration property to set edit action as unique task #1

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ open class RuntimeDataHolder(
var tableActions: JSONObject,
var currentRecordActions: JSONObject,
var globalActions: JSONObject,
var inputControls: List<FieldMapping>
var inputControls: List<FieldMapping>,
var editActionHasUniqueTask: Boolean
) {

companion object {
Expand Down Expand Up @@ -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,
Expand All @@ -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
)
}

Expand Down
Loading