anywhere
Posts: 40
Joined: Tue Sep 08, 2020 3:04 am

Correct syntax to update LSV Array

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Re: Correct syntax to update LSV Array

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.

anywhere
Posts: 40
Joined: Tue Sep 08, 2020 3:04 am

Re: Correct syntax to update LSV Array

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Re: Correct syntax to update LSV Array

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.

Return to “Issues”