Multiple context stores problem

Hello.
I'm having problem reading stored value.
I have created new store with:
contextStorage: {
store: {
module:"localfilesystem"
},
trend_store: {
module:"localfilesystem"
},
default: {
module:"memory"
}
},
I'm writing context data using: "Change" node.
image
I can see the right value in "Context Data" tab.
image
But when I use "var TimeStart = flow.get("TimeStartSet", trend_store)||0;"
I've got:"ReferenceError: trend_store is not defined (line 2, col 42)"

Please help.

BR, Andrej

Figured out...Missing '...
The right command is:
var TimeStart = flow.get("TimeStartSet", 'trend_store')||0;

There is a mistake in help:
// Get value - sync
var myCount = flow.get("count", storeName);

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.