Totes Posted July 25, 2010 Posted July 25, 2010 (edited) Hello, Started working on a new project, an eight photo, photo lineup and I need help. I have a contact db which will store data about people as well as a photo. I also have a layout with Global Containers (8 total for the photos I select from the contact db). What I want to do is attach a button to the photo on the contact db that will place the photo in the first Global Container if it is empty. If the first container is Not Empty then the selected photo will be placed in Global Container #2...if #2 is not empty then #3 etc. I have tried to use If Not IsEmpty in the script, but that only can get me to container #2 and then I am stuck. Am I approaching this the wrong way? Looking for suggestions. Thanks, Jim Edited July 25, 2010 by Guest
JerrySalem Posted July 25, 2010 Posted July 25, 2010 This sounds right. Are you using Else IF Statements? Post your script I would use something like this; If[(isempty(container1)] Set Field[Container1; ContactPicture] else[isempty(container2)] Set Field[Container2;ContactPicture] ... EndIF
Fitch Posted July 25, 2010 Posted July 25, 2010 Another option is to use a separate table for the photos, related by the contact ID. That way you could just add a new photo record as needed.
Totes Posted July 25, 2010 Author Posted July 25, 2010 Jerry & Fitch, Thanks for the reply! Jerry, I'm not sure what the heck I was doing. I followed your example and everything is rolling along just fine. Thanks again! Jim
Recommended Posts
This topic is 5234 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now