Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do I retrieve images from a database?

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

Erin Rasmussen
Posts: 0
Joined: Mon Jul 14, 2014 5:09 pm

How do I retrieve images from a database?

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

Return to “Issues”