Page 2 of 2

How do I retrieve images from a database?

Posted: Tue Nov 12, 2013 8:25 am
by Kateryna Grynko

Hi Alex,

On Page Load run:preAppery("mobilelist").find("li").off().on("click", function(e){
localStorage.setItem("myParam", $(this).text().replace(/[\n\r]/gi, "").replace(/\s+$/gi,"").replace(/\s+/gi,""));
restservice1.execute();
});/preWhere 'mobilelist' is your list name,
'restservice1' is a service name,
'myParam' is a name of localStorage variable that will be passed to service.

On service mapping, add the following code to parameter 'where':prereturn '{"nombre":{"' + localStorage.getItem("myParam") + '"}';/pre


How do I retrieve images from a database?

Posted: Mon Jul 14, 2014 9:02 pm
by Erin Rasmussen

Here is the code I am using. I decided to try it with just a static file name so that I could try to get that to work before trying to use a variable for the file name. For some reason the image isn't displaying. Am I doing something wrong?

Image Image