Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

showing ACS data in ListView

$
0
0

Hi, I'm working on ACS, i want to show profile pictures of the users in a listview. i am downloading pictures from ACS but some users don't have profile pictures, when i retrieve all pictures in a loop the whole list view does not appear. I'm working on this from yesterday but do not find solution yet. Can anyone please help, i'll be thankful.

for ( i = 0; i < places.length; i++) {
            var rowSection = Ti.UI.createListSection({
            });
 
            //alert(places[i].photo);
 
            var rowDataSet = [{
                name : {
                    text : places[i].name
                },
                deal : {
                    text : places[i].custom_fields.deal
                },
                pic : {
                    image : '/images/directoryRowImage.png'
                },
                profilePic : {
                    image : places[i].photo.urls.square_75
                },
                properties : {
                    itemId : i,
                    height : 80
                }
            }];
            rowSection.setItems(rowDataSet);
            sections.push(rowSection);
        }

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>