Page 2 of 2

Linking a list to database record

Posted: Sun Jan 05, 2014 10:06 pm
by Robert6548600

OK, It is saving the correct localstorage variables. just checked in chrome... doesnt show the localstorage in firefox or at least I couldnt find it lol


Linking a list to database record

Posted: Sun Jan 05, 2014 10:50 pm
by Robert6548600

OK, figured it out... was using "where id" instead of "where _id"


Linking a list to database record

Posted: Mon Nov 10, 2014 5:29 pm
by kay

Hi Robert/Alena,

I am struggling a bit with this and going round in circles. I followed the tutorial and got it to work, but it's confusing me on transferring that knowledge gained on that activity to calling the info from a database.

I am taking the records from my own database and assume you were doing something similar Robert. I have all my records displaying. But only want one specific record to display at a time.

I understand the need for a variable to pass the unique ID, so have set that up, but I am not sure of the next steps to pass the variable before the success response to retreive a single record.

If you did something similar Robert, will you post the steps here? Or if anyone has an idiot proof Appery.io example that I could attempt to follow, could you post a link?

Thanks and much appreciated.


Linking a list to database record

Posted: Tue Nov 11, 2014 3:24 am
by Yurii Orishchuk

Hi Robert,

you can use following JS code in FF browser console to see what stored in certain LSV.

pre

//Where "nameLSV" is your LSV name.
var nameValue = localStorage.getItem("nameLSV");

console.log("nameValue = '" + nameValue + "'");

/pre

Regards.