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
7b92bec7
Commit
7b92bec7
authored
Aug 15, 2017
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open/save pivot only with "worksheet" cacheSource type
parent
3319b649
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
cell/api.js
cell/api.js
+8
-6
cell/model/PivotTables.js
cell/model/PivotTables.js
+3
-0
No files found.
cell/api.js
View file @
7b92bec7
...
@@ -1006,11 +1006,13 @@ var editor;
...
@@ -1006,11 +1006,13 @@ var editor;
if
(
content
)
{
if
(
content
)
{
pivotTableCacheDefinition
=
new
CT_PivotCacheDefinition
();
pivotTableCacheDefinition
=
new
CT_PivotCacheDefinition
();
new
openXml
.
SaxParserBase
().
parse
(
content
,
pivotTableCacheDefinition
);
new
openXml
.
SaxParserBase
().
parse
(
content
,
pivotTableCacheDefinition
);
wb
.
pivotCaches
[
wbPivotCacheXml
.
cacheId
]
=
pivotTableCacheDefinition
;
if
(
pivotTableCacheDefinition
.
isValidCacheSource
())
{
if
(
pivotTableCacheDefinition
.
id
)
{
wb
.
pivotCaches
[
wbPivotCacheXml
.
cacheId
]
=
pivotTableCacheDefinition
;
var
partPivotTableCacheRecords
=
pivotTableCacheDefinitionPart
.
getPartById
(
if
(
pivotTableCacheDefinition
.
id
)
{
pivotTableCacheDefinition
.
id
);
var
partPivotTableCacheRecords
=
pivotTableCacheDefinitionPart
.
getPartById
(
return
partPivotTableCacheRecords
.
getDocumentContent
();
pivotTableCacheDefinition
.
id
);
return
partPivotTableCacheRecords
.
getDocumentContent
();
}
}
}
}
}
}).
then
(
function
(
content
)
{
}).
then
(
function
(
content
)
{
...
@@ -1047,8 +1049,8 @@ var editor;
...
@@ -1047,8 +1049,8 @@ var editor;
var
cacheDefinition
=
wb
.
pivotCaches
[
pivotTable
.
cacheId
];
var
cacheDefinition
=
wb
.
pivotCaches
[
pivotTable
.
cacheId
];
if
(
cacheDefinition
)
{
if
(
cacheDefinition
)
{
pivotTable
.
cacheDefinition
=
cacheDefinition
;
pivotTable
.
cacheDefinition
=
cacheDefinition
;
ws
.
pivotTables
.
push
(
pivotTable
);
}
}
ws
.
pivotTables
.
push
(
pivotTable
);
}
}
}
}
wsIndex
++
;
wsIndex
++
;
...
...
cell/model/PivotTables.js
View file @
7b92bec7
...
@@ -1744,6 +1744,9 @@ CT_PivotCacheDefinition.prototype.getFields = function () {
...
@@ -1744,6 +1744,9 @@ CT_PivotCacheDefinition.prototype.getFields = function () {
CT_PivotCacheDefinition.prototype.getRecords = function () {
CT_PivotCacheDefinition.prototype.getRecords = function () {
return this.cacheRecords && this.cacheRecords.r;
return this.cacheRecords && this.cacheRecords.r;
};
};
CT_PivotCacheDefinition.prototype.isValidCacheSource = function () {
return this.cacheSource && this.cacheSource.type === c_oAscSourceType.Worksheet;
};
function CT_PivotCacheRecords() {
function CT_PivotCacheRecords() {
//Attributes
//Attributes
this.count = null;
this.count = null;
...
...
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