Iterate over stored properties

Hi guys,

I would like to clear some properties stored in the application when the app launches. Is there a way to iterate over the property store?

Thanks!

Bye
  • If you mean the objectStore/Application.Storage, doesn't your app know what's in it?
  • Hi Jim,

    I am thinking about reducing memory load on the app by storing arrays/dictionaries in the object store when a view is getting hidden and retrieving them again when the view is put in foreground. For that I would like to clear this kind of cache on application load, that is why I wanted to iterate through all of them and delete the temporary data. But I guess this is also possible by using one dictionary for all views.

    Thanks anyways!

    Bye
  • if to make arrey with your stored items name and make iteration throug arrey sending the names to clearing code?

    (writing from phone, sorry if mistakes will appear)

    //names should be as Str
    var NAMES["arr1", "arr2", "dict1"," dict2", "val1", "VAL2"];
    //or by using arr langhe for dynamic
    for(var i=0; i<6; i++){
    var removeStor = NAMES;
    App.Storage.setValue(removeStor, null);
    //or completely delete value:
    //App.Storage.deleteValue(removeStor);
    }

    however, if i understud the idea correct, Sorage is based not in, lets say RAM, it's in HDD. So, by clearing Storage, you will do opposite, just will load RAM with extra functions..
  • The idea was another one. When pushing a particular view I want to push the data (that is currently in memory) to the properties (HDD) to spare some RAM. When the view becomes visible again, I want to push the data from HDD into RAM again.

    Bye