any news here Evegene
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
any news here Evegene
Hello Michael,
Sorry not yet, working on it.
anything Evegene?
Hello Michael,
Sorry for delay. If an array of IDs is kept in yours favprop_id, the code
preif (value.favprop_id != localStorage.getItem("favprop_id"))/pre
is not correct.
Please check in model and storage that favprop_id is an array of strings. Then in the code you may do this way:
prevar favprop_idArr = Apperyio.storage.favprop_id.get();
if (favprop_idArr.indexOf(value.favprop_id) = 0)/pre
Evegene,
I really need a solution to this, I cannot wait another 2 weeks, with 3 apps to update
Michael,
You shouldn't change the whole code but only if.
i.e. the code in the mapping should look like this
prevar favprop_idArr = Apperyio.storage.favprop_id.get();
if (favprop_idArr.indexOf(value.favprop_id) = 0) {
$(element).hide();
}/pre
But to be honest I have a doubt about value.favprop_id after your screenshots. Please detail, on what field you are sorting? If the name of the field (in the structure on the left) is not favprop_id, please replace favprop_id to the desired name in the code. According to the screenshots, this is property_id, i.e. the code will be
prevar favprop_idArr = Apperyio.storage.favprop_id.get();
if (favprop_idArr.indexOf(value.property_id) = 0) {
$(element).hide();
}/pre