I am trying to read an data which is a array of elements, but in call back its returned as none. But if i put a quote around the data making it as a string it works fine.
But since the array is written to the storage by different service, how can i read it in DASH app using the dcc.store.
this works fine “test,Default,dKqcqUZU” but not this test,Default,dKqcqUZU
Thanks
Hi @Lalitsc12,
The format for an array is incorrect here. This is what you can have with a simple store dcc.Store("test", storage_type="local", data=["one", "two", "three"])
:
Notice the squared brackets and the quotes around each elem of the array.
So you’ll either need to adjust the way the different service writes the array in local storage, or use a clientside callback to parse “testdata” and save it into a proper dash dcc.Store variable using set_props
. See: Clientside Callbacks | Dash for Python Documentation | Plotly
1 Like
Thank you!!. This seems to be working in my local laptop.
1 Like