Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5234 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (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 by Guest
Posted

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

Posted

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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.