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

Loading multiple images from database to List

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; Image Image

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

Loading multiple images from database to List

Hi Erin,

Could you please post a screenshot of mapping and an example of service response?

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

Loading multiple images from database to List

The second image is the js for the event of query success

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Loading multiple images from database to List

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.

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

Loading multiple images from database to List

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Loading multiple images from database to List

Hello Erin,

Thank you for the update, glad it works.

zaik
Posts: 0
Joined: Wed Sep 09, 2015 7:15 am

Loading multiple images from database to List

map model array with image array adding using on click having ng-repeat?

Return to “Issues”