Hi all,
Sync messages are not being processed when the iOS FSM app has a sync error, when using a custom script with SaveChanges() or by using the saveDataTransaction function.
Example,
When using the FSM baseline design and adding a custom button on the task Overview page for setting the Task Status to Accepted, with one of the following scripts
setControlValue("task", "task_status", "ACCEPTED");
var res = saveChanges();
var taskStatusTrans = generateDataTransaction("task","UPDATE",stringFormat("metrix_row_id = '{0}'", rowId));
taskStatusTrans = addToDataTransaction(taskStatusTrans,'metrix_row_id',rowId);
taskStatusTrans = addToDataTransaction(taskStatusTrans, "task_id", taskId);
taskStatusTrans = addToDataTransaction(taskStatusTrans, "task_status", "ACCEPTED");
var res = saveDataTransaction(taskStatusTrans, stringFormat("Task status {0} updated", taskId));
The message will not be processed, until the error has been removed. The error is unrelated to the task btw.
But, if you change the status via the status field, and use the ‘Save’ button (with no adjustments or events configured), the message will be synced.
This issue does not occur in Android
Regards,