Page 1 of 1

Data Grid - Images not sticking

Posted: Tue Jul 17, 2012 6:07 am
by jameshale
I have a data grid in FORM form and have an image being placed with each record.
Following the example given in the Data Grid lessons everything works except for one thing.
The image doesn't stick.
If I have three records, only the first record displays the image BUT it is the image of the 3rd record.
Records 2 and three have a blank image.

The data is in an array with four variables
data[x]["name"] <- text
data[x]["filename"] <- text
data[x]["current_book"] <- text
data[x]["cover_image'"] <- image data

The FillInData is as follows:

on FillInData pDataArray
set the text of field "Title" of me to pDataArray["name"]
set the text of field "filename" of me to pDataArray["filename"]
set the text of field "Current" of me to pDataArray["current_book"]
put pDataArray["cover_image"] into image "image"
end FillInData

So everything gets filled in correctly except the image which, as I said only shows for the last image read, but placed in the first image position.

what am I doing wrong?

James

Re: Data Grid - Images not sticking

Posted: Tue Jul 17, 2012 12:18 pm
by Klaus
Hi James,

of me :D
...
put pDataArray["cover_image"] into image "image" OF ME
## sorry for being so egocentric today :D
...

Best

Klaus

Re: Data Grid - Images not sticking

Posted: Tue Jul 17, 2012 3:06 pm
by jameshale
AAhhh!
As they said in a song that was a hit many years ago over here, "ego is not a dirty word."

Thank you so much.

all works as expected now.

James