How to organize photos within data in a text field?

Creating desktop or client-server database solutions?

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
CElwell
Posts: 38
Joined: Thu Feb 04, 2016 6:29 pm

How to organize photos within data in a text field?

Post by CElwell » Fri May 06, 2016 5:58 pm

Currently I am able to load all of the photos onto the page, however, they all load in the center of the app on top of one another. I want to have the images display before the data it belongs with.

For example:
[photo]
Name:
Sex:
Age:

[photo]
Name:
Sex:
Age:

This is my code currently (data loaded from xml url) and I have tried to look at rect and other properties, but I have not been able to have any luck.

Code: Select all

repeat for each line tChild in tChildren
  put revXMLChildNames( tInfo, "ArrayOfXmlNode/"&tChild&backslash, return, "adoptableSearch", true) into tAdoptable
  
  put revXMLNodeContents( tInfo, "ArrayOfXmlNode/"&tChild&"/"&tAdoptable&"/Photo") into tTest
      put url tTest into tPhoto
      if the result is empty then
         set the text of img 1 to tPhoto
      else
         beep
      end if
  
  //other data loaded here...
end repeat
Thank you!

MaxV
Posts: 1574
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: How to organize photos within data in a text field?

Post by MaxV » Fri May 13, 2016 3:56 pm

You should use a datagrid form, here the guide: http://lessons.livecode.com/m/datagrid/ ... -of-people
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Databases”