Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
b84a1bc3
Commit
b84a1bc3
authored
Jul 31, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rowItem -> item, rowItems -> items
parent
98a948a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
cell/model/Workbook.js
cell/model/Workbook.js
+9
-9
No files found.
cell/model/Workbook.js
View file @
b84a1bc3
...
...
@@ -4971,20 +4971,20 @@
++
r1
;
var
rowItem
,
rowI
tems
=
pivotTable
.
getRowItems
();
if
(
rowI
tems
)
{
for
(
i
=
0
;
i
<
rowI
tems
.
length
;
++
i
)
{
rowItem
=
rowI
tems
[
i
];
for
(
j
=
0
;
j
<
rowI
tem
.
x
.
length
;
++
j
)
{
if
(
AscCommonExcel
.
c_oAscItemType
.
Grand
===
rowI
tem
.
t
)
{
var
item
,
i
tems
=
pivotTable
.
getRowItems
();
if
(
i
tems
)
{
for
(
i
=
0
;
i
<
i
tems
.
length
;
++
i
)
{
item
=
i
tems
[
i
];
for
(
j
=
0
;
j
<
i
tem
.
x
.
length
;
++
j
)
{
if
(
AscCommonExcel
.
c_oAscItemType
.
Grand
===
i
tem
.
t
)
{
v
=
'
Grand Total
'
;
}
else
{
indexField
=
rowFields
[
rowI
tem
.
getR
()].
asc_getIndex
();
cacheIndex
=
pivotFields
[
indexField
].
getItem
(
rowI
tem
.
x
[
j
].
getV
());
indexField
=
rowFields
[
i
tem
.
getR
()].
asc_getIndex
();
cacheIndex
=
pivotFields
[
indexField
].
getItem
(
i
tem
.
x
[
j
].
getV
());
sharedItem
=
cacheFields
[
indexField
].
getSharedItem
(
cacheIndex
.
x
);
v
=
sharedItem
.
v
;
}
cells
=
this
.
getRange4
(
r1
+
i
,
rowFieldsPos
[
rowI
tem
.
getR
()]);
cells
=
this
.
getRange4
(
r1
+
i
,
rowFieldsPos
[
i
tem
.
getR
()]);
cells
.
setValue
(
v
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment