Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

Chart data from cache

Hi,


is there a possibility to use data from the local cache in a chart?

Like the WebSQL in a table.


Thanks & Regards


Hi Franziska


The Attribute setInitLoad needs to be set to cache. Then the chart will automatically load data from cache when you start your application.


In offline scenario you can use set/get data on the model of the FlattenedDataset to reload new data.



Regards

Ole Andre

Hi Ole Andre,

in the model FlattenedDataset, there's also no setCacheType.
How can I get the data from the cache here?

Regards
Franziska

Hi Franziska


Yes, using the sap.viz complex chart, they need the FlattenedDataset. And that component can store data in the cache (LocalStorage/WebSQL).


Regards

Ole Andre 

Login or Signup to post a comment