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
3d6f4835
Commit
3d6f4835
authored
Apr 05, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo olap_wizard use getRemoteSettings
parent
410e9239
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
demo/xmla_connection/wizard.js
demo/xmla_connection/wizard.js
+18
-13
No files found.
demo/xmla_connection/wizard.js
View file @
3d6f4835
...
...
@@ -4,20 +4,11 @@
(
function
(
window
,
rJS
)
{
"
use strict
"
;
function
getConnections
()
{
return
{
"
xmla
"
:
{
"
urls
"
:
[
"
https://d1.erp5.ru/saiku/xmla
"
],
"
properties
"
:
{
"
DataSourceInfo
"
:
"
FoodMart
"
,
"
Catalog
"
:
"
FoodMart
"
,
"
Cube
"
:
"
Sales
"
}
}
};
}
function
getCurrentConnectionSettings
(
gadget
)
{
function
getCurrentConnectionSettings
(
g
,
gadget
)
{
var
connections
;
return
RSVP
.
Queue
()
.
push
(
function
()
{
return
g
etConnection
s
();
return
g
.
getRemoteSetting
s
();
})
.
push
(
function
(
c
)
{
connections
=
c
;
...
...
@@ -318,10 +309,24 @@
value
:
{}
});
})
.
declareMethod
(
"
getRemoteSettings
"
,
function
()
{
return
{
"
xmla
"
:
{
"
urls
"
:
[
"
https://d1.erp5.ru/saiku/xmla
"
],
"
properties
"
:
{
"
DataSourceInfo
"
:
"
FoodMart
"
,
"
Catalog
"
:
"
FoodMart
"
,
"
Cube
"
:
"
Sales
"
}
}
};
})
.
allowPublicAcquisition
(
"
notifyValid
"
,
function
(
arr
,
scope
)
{
})
.
allowPublicAcquisition
(
"
notifyInvalid
"
,
function
(
arr
,
scope
)
{
})
.
declareMethod
(
"
rerender
"
,
function
()
{
return
this
.
getDeclaredGadget
(
"
olap_wizard
"
)
.
push
(
function
(
gadget
)
{
return
gadget
.
rerender
();
});
})
.
declareMethod
(
"
render
"
,
function
(
opt
)
{
if
(
!
opt
)
{
opt
=
{};
...
...
@@ -382,7 +387,7 @@
.
push
(
function
(
gadget
)
{
gadget_settings
=
gadget
;
return
RSVP
.
all
([
getCurrentConnectionSettings
(
gadget
),
getCurrentConnectionSettings
(
g
,
g
adget
),
gadget
.
getSubGadget
(
sub_scope
)
]);
})
...
...
@@ -457,7 +462,7 @@
if
(
"
urn:jio:remote_connections.json
"
===
url
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
g
etConnection
s
();
return
g
.
getRemoteSetting
s
();
})
.
push
(
function
(
connections
)
{
var
key
,
...
...
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