Commit 2d2fdf42 authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] use ISTEXT() in wizard result.

parent 0bc4f5a5
...@@ -174,7 +174,8 @@ DocsAPI.DocEditor.version = function () { ...@@ -174,7 +174,8 @@ DocsAPI.DocEditor.version = function () {
c, c,
c_len, c_len,
r, r,
r_len; r_len,
formula;
r_len = print_titles(rows, start_row + columns.length, start_column, false); r_len = print_titles(rows, start_row + columns.length, start_column, false);
c_len = print_titles(columns, start_row, start_column + rows.length, true); c_len = print_titles(columns, start_row, start_column + rows.length, true);
...@@ -183,12 +184,13 @@ DocsAPI.DocEditor.version = function () { ...@@ -183,12 +184,13 @@ DocsAPI.DocEditor.version = function () {
c_len = c_len + start_column + rows.length; c_len = c_len + start_column + rows.length;
for (r = start_row + columns.length; r < r_len; r += 1) { for (r = start_row + columns.length; r < r_len; r += 1) {
for (c = start_column + rows.length; c < c_len; c += 1) { for (c = start_column + rows.length; c < c_len; c += 1) {
setCell(r, c, formula = "CUBEVALUE(" + connection_name + ',' +
"=CUBEVALUE(" + connection_name + ',' +
s.worksheet.getRange3(r, start_column, r, start_column + rows.length -1).getName() + s.worksheet.getRange3(r, start_column, r, start_column + rows.length -1).getName() +
',' + ',' +
s.worksheet.getRange3(start_row, c, start_row + columns.length - 1, c).getName() + s.worksheet.getRange3(start_row, c, start_row + columns.length - 1, c).getName() +
')'); ')';
setCell(r, c,
"=IF(ISTEXT(" + formula + '),0,' + formula + ')');
} }
} }
......
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