- The purpose is to make any task for an action with the
preset
key equal toedit
to be unique :- If offline, an edit could be in pending task after validating the action form
- If launch a new edit, instead of creating a new task, the one in pending task will be opened
- so data already filled will be displayed
- and when validating, just register the new data into selected/found task
- no new task in pending task list
- waiting on network connection to send the data to server (inside on mobile app action)
EditActionHasUniqueTask.mp4
The feature is not for all, so a conf in
Inside Mobile Projects/<project name>/project.4dmobileapp
add this to activate the feature
"extra": {
"editActionHasUniqueTask": true
}
⚠️ project must be close before editing file, and reopened after- 💡 generated apps must have following configuration set after generating it
Inside app/src/main/assets/appInfo.json
add this to activate the feature for an already generated app
"action.edit.hasUniqueTask": true
Inside Settings/Settings.plist
add this to activate the feature for an already generated app
<key>action.edit.hasUniqueTask</key>
<true/>
We could have some definition by action, not only the "edit" one. For that a new boolean hasUniqueTask
could be added to the action json definition
Inside app/src/main/assets/actions.json
by action you could add hasUniqueTask
to true
in storyboards definition inside userDefinedRuntimeAttribute
, find your action and edit in the one line json, the hasUniqueTask
to true
adding for all in mobile project editor a way to edit project to set true or false by action ie. a checkbox