Commit 5d81ba21 authored by Jérome Perrin's avatar Jérome Perrin Committed by Georgios Dagkakis

GUI: save solution id when saving workplan for comparison

parent a868cb33
......@@ -34,6 +34,7 @@
new_spreadsheet = JSON.parse(result_list[0]).result.result_list[options.result][options.action_definition.configuration.output_id];
gadget.props.new_spreadsheet = new_spreadsheet;
gadget.props.options = options;
return result_list[1].render(JSON.stringify([reference_spreadsheet, new_spreadsheet]));
});
})
......@@ -55,6 +56,7 @@
var object_data = JSON.parse(data);
// XXX option for that
object_data.input.reference_spreadsheet = gadget.props.new_spreadsheet;
object_data.input.reference_solution = gadget.props.options.id;
return gadget.aq_putAttachment({
"_id": gadget.props.jio_key,
"_attachment": "body.json",
......
......@@ -14,6 +14,7 @@
}).push(function(result_list) {
var reference_spreadsheet = JSON.parse(result_list[0]).input.reference_spreadsheet || [], new_spreadsheet = JSON.parse(result_list[0]).result.result_list[options.result][options.action_definition.configuration.output_id];
gadget.props.new_spreadsheet = new_spreadsheet;
gadget.props.options = options;
return result_list[1].render(JSON.stringify([ reference_spreadsheet, new_spreadsheet ]));
});
}).declareMethod("startService", function() {
......@@ -29,6 +30,7 @@
var object_data = JSON.parse(data);
// XXX option for that
object_data.input.reference_spreadsheet = gadget.props.new_spreadsheet;
object_data.input.reference_solution = gadget.props.options.id;
return gadget.aq_putAttachment({
_id: gadget.props.jio_key,
_attachment: "body.json",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment