Commit db21eb3b authored by Jérome Perrin's avatar Jérome Perrin

example commit to explain where initial data from spreadsheet should be read

parent 5aa48435
...@@ -59,7 +59,8 @@ ...@@ -59,7 +59,8 @@
edges: {}, edges: {},
preference: {}, preference: {},
general: {}, general: {},
wip_part_spreadsheet: [[ //XXX do not set spreadsheet default here but in the spreadsheet gadget
/* wip_part_spreadsheet: [[
"Order ID", "Order ID",
"Due Date", "Due Date",
"Priority", "Priority",
...@@ -81,13 +82,13 @@ ...@@ -81,13 +82,13 @@
"Sequence", "Sequence",
"Capacity Requirements" "Capacity Requirements"
]], ]],
capacity_by_station_spreadsheet: [[ // capacity_by_station_spreadsheet: [[
"Day", // "Day",
"CS1" // "CS1"
]], // ]],
dp_capacity_spreadsheet: [[ ]], // dp_capacity_spreadsheet: [[ ]],
dp_route_spreadsheet: [[ ]] // dp_route_spreadsheet: [[ ]]
}, */ },
name = "Untitled"; name = "Untitled";
return new RSVP.Queue() return new RSVP.Queue()
......
...@@ -86,8 +86,12 @@ ...@@ -86,8 +86,12 @@
.push(function (result_list) { .push(function (result_list) {
// XXX here, get options to create some columns, // XXX here, get options to create some columns,
// creating empty list from options // creating empty list from options
data = JSON.parse(result_list[0]).tutorial_spreadsheet;
if (!data) {
data = configuration columns
}
return result_list[1].render( return result_list[1].render(
JSON.stringify(JSON.parse(result_list[0]).tutorial_spreadsheet), JSON.stringify(data),
{ minSpareRows: 1, { minSpareRows: 1,
onChange: function () { onChange: function () {
if (gadget.timeout) { if (gadget.timeout) {
......
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