Page 1 of 1
Loading multiple images from database to List
Posted: Thu Jul 17, 2014 1:54 pm
by Erin Rasmussen
Hi,
So what I'm trying to do is using a search bar, search for all entries in the database that match the string entered in the search. Then, all the possible matches are shown in a Collapsible which contains various pieces of information as well as an image of the item. I have the search query working correctly and the information for each matching item shows as expected. The problem is, I can only get the image to display for the first Collapsible/ first item returned by the Query.
I have the file name mapped to the Asset of the image within the Collapsible set and added this js to the Asset component
return "https://api.appery.io/rest/1/db/files..." + value;
Loading multiple images from database to List
Posted: Thu Jul 17, 2014 2:44 pm
by Kateryna Grynko
Hi Erin,
Could you please post a screenshot of mapping and an example of service response?
Loading multiple images from database to List
Posted: Thu Jul 17, 2014 5:23 pm
by Erin Rasmussen
Loading multiple images from database to List
Posted: Thu Jul 17, 2014 5:23 pm
by Erin Rasmussen
The second image is the js for the event of query success
Loading multiple images from database to List
Posted: Thu Jul 17, 2014 11:35 pm
by obullei
Hello!
Please describe your actions step by step and the result you get.
Please also provide a public link of your application.
We also need detailed information about what result you want to get.
Loading multiple images from database to List
Posted: Fri Jul 18, 2014 12:17 pm
by Erin Rasmussen
Hi,
I somehow got it to work. I just deleted the image object I had and then replaced it with a new one and it works now
Loading multiple images from database to List
Posted: Fri Jul 18, 2014 12:20 pm
by Evgene Karachevtsev
Hello Erin,
Thank you for the update, glad it works.
Loading multiple images from database to List
Posted: Thu Oct 15, 2015 2:37 pm
by zaik
map model array with image array adding using on click having ng-repeat?