Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
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
rjs_json_form
Commits
047c01d4
Commit
047c01d4
authored
Mar 16, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rerender again if rerender change
parent
75c1683c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
13 deletions
+37
-13
demo/xmla_connection/wizard.js
demo/xmla_connection/wizard.js
+37
-13
No files found.
demo/xmla_connection/wizard.js
View file @
047c01d4
...
...
@@ -365,6 +365,7 @@
action
=
arr
[
0
].
action
,
used_diemensions
,
url
=
arr
[
0
].
ref
,
allRerender
,
y
;
function
rerender
(
sub_scope
)
{
...
...
@@ -379,6 +380,21 @@
queue
=
RSVP
.
Queue
();
}
function
rerender_once
(
connection_settings
,
sub_gadget
)
{
return
sub_gadget
.
getContent
()
.
push
(
function
(
content
)
{
console
.
log
(
content
);
return
generateChoiceSchema
(
connection_settings
,
used_diemensions
,
content
);
})
.
push
(
function
(
schema
)
{
return
gadget_settings
.
rerender
({
scope
:
sub_scope
,
schema
:
schema
,
ignore_incorrect
:
true
});
});
}
queue
.
push
(
function
()
{
return
g
.
getDeclaredGadget
(
"
olap_wizard
"
);
...
...
@@ -388,19 +404,24 @@
return
RSVP
.
all
([
getCurrentConnectionSettings
(
gadget
),
gadget
.
getSubGadget
(
sub_scope
)
.
push
(
function
(
z
)
{
return
z
.
getContent
();
})
]);
})
.
push
(
function
(
arr
)
{
return
generateChoiceSchema
(
arr
[
0
],
used_diemensions
,
arr
[
1
]);
var
connection_settings
=
arr
[
0
],
sub_gadget
=
arr
[
1
];
return
rerender_once
(
connection_settings
,
sub_gadget
)
.
push
(
function
(
changed
)
{
if
(
changed
.
length
>
0
)
{
if
(
changed
.
indexOf
(
'
/dimension
'
)
>=
0
)
{
return
allRerender
();
}
return
rerender_once
(
connection_settings
,
sub_gadget
);
}
})
.
push
(
function
(
schema
)
{
return
gadget_settings
.
rerender
({
scope
:
sub_scope
,
schema
:
schema
,
ignore_incorrect
:
true
.
push
(
function
(
changed
)
{
if
(
changed
.
length
>
0
)
{
return
rerender_once
(
connection_settings
,
sub_gadget
);
}
});
})
.
push
(
function
()
{
...
...
@@ -409,15 +430,18 @@
});
}
function
allRerender
()
{
allRerender
=
function
()
{
return
get_used_dimensions
(
g
)
.
push
(
function
(
v
)
{
used_diemensions
=
v
;
return
RSVP
.
all
(
g
.
props
.
choices
.
map
(
function
(
q
)
{
return
rerender
(
q
);
}));
})
.
push
(
function
()
{
return
[];
});
}
}
;
if
(
"
urn:jio:remote_connections.json
"
===
url
)
{
return
allRerender
();
...
...
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