Reading multiple DB records into storage model
Hi,
I'm trying to use model storage feature to capture several records of data from DB and store them locally. The DB collection contains 12 records for each user. I want read these records into localstorage such that, when the user selects to display one of them there is no delay every time s/he selects from radiobuttons.
First, is that possible?
If yes, I tried the following mapping:
and the following method of reading from localstorage:
But I get the error (attempt to read object by index i). I also tried this:
But it only return the ONE record values.
Further, I'm following this tutorial to solve the issue (http://devcenter.appery.io/documentat...) but no luck so far
In short, what I'm trying to achieve is, there is radiogroup buttons, when the user selects one of them, the value of i will be chosen and based on that the values will be read from localstorage.
If this is not possible, what options do I have to implement this logic?
Many thanks for your help.