Hi Michael,
1) In Save button handler, add handlers to save the value of the components in the localStorage, each Label in a separate variable:
http://docs.appery.io/documentation/w...
2) And one more handler, "Add JavaScript action" with the following code:
code// get current list of favorites
var favorites = JSON.parse(localStorage.getItem( "favorites" ) "[]");
// "[]" added in case variable favorites don't exists.
// names of your variables saved in actions above
var keys = ['variable1', 'variable2', ....],
i = 0,
new_item = {};
$.each(keys, function(i, key){
new_item[key] = localStorage.getItem(key);
});
// add to array
favorites.append(new_item);
// save back to the localStorage string(!)
localStorage.setItem( "favorites", JSON.stringify(favorites) );/code