Page 1 of 1

How to display more than one photo from Tiggzi files storage?

Posted: Mon Nov 26, 2012 1:13 pm
by Aleksandr Pasevin

Hi guys, putting many hopes in Tiggzi.

I am testing a basic "instagram"-like functionality. I have managed to implement login function, then from database to take file name and query it to files storage to retrieve. My problem is that i can not populate more than one image into image containers... At bets what I get is the same image in all containers...

Is there any common approach to this or a tutorial I could look at?

Thanks in advance!


How to display more than one photo from Tiggzi files storage?

Posted: Mon Nov 26, 2012 1:58 pm
by Maryna Brodina

Hello! Could you clarify please how do you populate images? Some screenshots would help.


How to display more than one photo from Tiggzi files storage?

Posted: Mon Nov 26, 2012 2:05 pm
by Aleksandr Pasevin

So here is how i get data about files from database and populate it to labels, all is good here.

Image

This is where im having problems... when i console.log() it i get one string with all filenames in it.

Image

This part is ok as well, here i just insert result to image container

Image

P.S. I have two service instances first one get filename from database and on success i call second service to load that file from storage. It looks like this event happens only once..but i want it to happen same amount of times as there are file names.


How to display more than one photo from Tiggzi files storage?

Posted: Tue Nov 27, 2012 12:53 pm
by Aleksandr Pasevin

Do you need more clarification? or I could share project with you.


How to display more than one photo from Tiggzi files storage?

Posted: Tue Nov 27, 2012 4:13 pm
by maxkatz

You would need to issue a separate request to get the next image.


How to display more than one photo from Tiggzi files storage?

Posted: Wed Dec 05, 2012 1:25 pm
by Aleksandr Pasevin

So I will need to create a loop of some sort? Does it mean I will need to write my custom code? Or is it possible to achieve same functionality just by data mapping and just few lines of additional code?
Sorry it took me a while to reply...


How to display more than one photo from Tiggzi files storage?

Posted: Wed Dec 05, 2012 1:42 pm
by Kateryna Grynko

Hello Aleksandr,

Unfortunately you cannot do it using standard mapping tools. One RESTService is not able to get more than one database images.
You can try to write JS code which uses ajax to get image from database, but it's not that ease.


How to display more than one photo from Tiggzi files storage?

Posted: Wed Dec 05, 2012 1:43 pm
by Aleksandr Pasevin

Thats what I was afraid off :] But anyway, thanks for your quick and helpful replies. I will start digging deeper ;]