Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
d32c436f
Commit
d32c436f
authored
Dec 15, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generic spreadshit now stores data in input echelon of the all inclusive file
parent
313b8a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
dream/platform/src/dream/Input_viewSpreadsheet.js
dream/platform/src/dream/Input_viewSpreadsheet.js
+6
-10
No files found.
dream/platform/src/dream/Input_viewSpreadsheet.js
View file @
d32c436f
...
...
@@ -28,7 +28,9 @@
})
.
push
(
function
(
body
)
{
var
data
=
JSON
.
parse
(
body
);
data
.
shift_spreadsheet
=
JSON
.
parse
(
editor_data
);
// create a property within input
// with name the provided at render time
data
.
input
[
gadget
.
props
.
name
]
=
JSON
.
parse
(
editor_data
);
return
gadget
.
aq_putAttachment
({
"
_id
"
:
gadget
.
props
.
jio_key
,
"
_attachment
"
:
"
body.json
"
,
...
...
@@ -70,11 +72,10 @@
var
jio_key
=
options
.
id
,
gadget
=
this
;
gadget
.
props
.
jio_key
=
jio_key
;
console
.
log
(
"
generic spreadsheet RENDER2
"
);
console
.
log
(
options
);
// view_##### is the formulatino of the names
gadget
.
props
.
name
=
options
.
action
.
substr
(
5
,
options
.
action
.
length
);
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
console
.
log
(
"
generic spreadsheet RENDER3
"
);
return
RSVP
.
all
([
gadget
.
aq_getAttachment
({
"
_id
"
:
jio_key
,
...
...
@@ -84,17 +85,12 @@
]);
})
.
push
(
function
(
result_list
)
{
console
.
log
(
"
generic spreadsheet RENDER4
"
);
console
.
log
(
JSON
.
parse
(
result_list
[
0
]));
var
i
,
content
,
data
=
JSON
.
parse
(
result_list
[
0
])
.
application_configuration
.
Input
;
console
.
log
(
data
);
.
application_configuration
.
input
;
for
(
i
=
0
;
i
<=
Object
.
keys
(
data
).
length
;
i
+=
1
)
{
if
(
Object
.
keys
(
data
)[
i
]
===
options
.
action
)
{
console
.
log
(
"
content
"
);
content
=
data
[
options
.
action
].
configuration
.
columns
;
console
.
log
(
content
);
}
}
// application_configuration.input.view_???_spreasheet.configuration
...
...
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