Session working with reference parents

This commit is contained in:
Luis Fernando Molina committed 2019-10-29 10:04:04 +01:00
1 parent 3e6a4470a5
commit 8a712ea30d
2 files changed
+76 -84

No files matched your search

@@ -18,12 +18,16 @@ function newSessionFunctions () {
return
}
if (node.payload.referenceParent === undefined) {
callBackFunction(GLOBAL.DEFAULT_FAIL_RESPONSE)
return
}
node.payload.uiObject.run(callBackFunction)
let key = node.name + '-' + node.type + '-' + node.id
let thisNodeDefinition = getDefinition(node)
if (thisNodeDefinition === undefined) { return }
let thisNodeDefinition = node.payload.referenceParent
/* Raise event to run the session */
let event = {
@@ -34,18 +38,6 @@ function newSessionFunctions () {
systemEventHandler.raiseEvent(key, 'Run Session', event)
function getDefinition (node) {
if (node.type === 'Definition') {
return node
}
if (node.payload.parentNode !== undefined) {
return getDefinition(node.payload.parentNode)
} else {
return
}
}
function getUICurrentValues () {
let dateAtScreenCorner = new Date(window.localStorage.getItem('Date @ Screen Corner'))
let currentTimePeriod = JSON.parse(window.localStorage.getItem('Current Time Period'))