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
87e4fb0e
Commit
87e4fb0e
authored
Sep 25, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pivot data range to formula dependencies
parent
958a09e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
cell/model/PivotTables.js
cell/model/PivotTables.js
+21
-0
No files found.
cell/model/PivotTables.js
View file @
87e4fb0e
...
...
@@ -5007,7 +5007,16 @@ function CT_WorksheetSource() {
this
.
name
=
null
;
this
.
sheet
=
null
;
this
.
id
=
null
;
//Private
this
.
formula
=
null
;
}
CT_WorksheetSource
.
prototype
.
onFormulaEvent
=
function
(
type
,
eventData
)
{
if
(
AscCommon
.
c_oNotifyParentType
.
CanDo
===
type
)
{
return
true
;
}
else
if
(
AscCommon
.
c_oNotifyParentType
.
ChangeFormula
===
type
)
{
// ToDo update formula with eventData.assemble;
}
};
CT_WorksheetSource
.
prototype
.
readAttributes
=
function
(
attr
,
uq
)
{
if
(
attr
())
{
var
vals
=
attr
();
...
...
@@ -5028,6 +5037,18 @@ CT_WorksheetSource.prototype.readAttributes = function(attr, uq) {
if
(
undefined
!==
val
)
{
this
.
id
=
uq
(
val
);
}
var
text
;
if
(
this
.
name
)
{
text
=
this
.
name
;
}
else
if
(
this
.
ref
&&
this
.
sheet
)
{
text
=
AscCommon
.
parserHelp
.
get3DRef
(
this
.
sheet
,
this
.
ref
);
}
if
(
text
)
{
this
.
formula
=
new
AscCommonExcel
.
parserFormula
(
text
,
this
,
AscCommonExcel
.
g_DefNameWorksheet
);
this
.
formula
.
parse
();
this
.
formula
.
buildDependencies
();
}
}
};
CT_WorksheetSource
.
prototype
.
toXml
=
function
(
writer
,
name
)
{
...
...
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