Importing and displaying images
Posted: Sun Aug 25, 2013 11:13 am
Hi all,
I am trying to import about 100 pictures from a folder and displaying them in thumbnail size in a datagrid.
I edited the template stack and put in this codes.
In the button:
And in the row template
The problem is that nothing gets displayed, only an outline of the image field.
Thank you and any help will be appreciated!
Cheers,
Gautami
I am trying to import about 100 pictures from a folder and displaying them in thumbnail size in a datagrid.
I edited the template stack and put in this codes.
In the button:
Code: Select all
put specialfolderpath("desktop") &"/images" into tfolder
set the defaultfolder to tfolder
put the files into theDataA
filter theDataA without ".DS_Store"
repeat for each line xline in theDataA
put quote & tfolder & "/" & xLine & quote & return into theDataA[xline]["Image URL"]
end repeat
Code: Select all
on FillInData pDataArray
set the filename of image "image" of me to pDataArray["Image URL"]
end FillInData
Thank you and any help will be appreciated!
Cheers,
Gautami