Page 1 of 1

Correct syntax to update LSV Array

Posted: Fri Sep 11, 2020 12:09 pm
by anywhere

Hi
I see there is syntax to get data from a LSV array but no information on how to do an UpDATE to a LSV array.
Apperyio.storage.storageVariable.get("$['users'][x]['Name']");

Pushing to an array variable and then UPDATING just inserts the whole array into one LSV object.

Does anyone have the correct syntax for me please?
Thank you.


Re: Correct syntax to update LSV Array

Posted: Fri Sep 11, 2020 8:52 pm
by Serhii Kulibaba

Hello,

You are right, there is no API to update the array. Please read a full array to the local variable, make all changes in that variable and save it to the Storage back.


Re: Correct syntax to update LSV Array

Posted: Sun Sep 13, 2020 5:42 am
by anywhere

Thx
When is appery adding PUSH to LSV?
Seems this functionality is missing?


Re: Correct syntax to update LSV Array

Posted: Wed Sep 16, 2020 12:19 pm
by Serhii Kulibaba

The Storage API contains only simple functions to create/read/update variables, no extra functionality. In most cases, it is enough, if you need to add more - it is possible to use a custom code for that. We are not planning to add more functions there in the nearest future.


Re: Correct syntax to update LSV Array

Posted: Fri Sep 18, 2020 4:56 am
by anywhere

Ok