Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Ok, I've gotten the if/else thing down pretty good, as well as the relationship thing. Combining them is a different story.

Am I close?

[FMP-If:RELATIONSHIP2 tongue.gif" border="0hoto1.neq.]

<img src="http://www.XYZCOMPANY.com/XYZpicts/[FMP-FIELD: RELATIONSHIP2: tongue.gif" border="0hoto1]">

[FMP-Else] <img src="http://www.XYZCOMPANY.com/images/empty.gif">

[/FMP-If]

Any help would be greatly appreciated. crazy.gif" border="0

Posted

Hi, are you trying to say that if the field is not empty, return the picture?

I don't think that the the problem is with the relationship, but that the 'neq' conditional isn't working with a blank.

I do this one by returning a calulation field from the database for the picture which is:

If(IsEmpty(imagename),"images/"&"zero.gif", "images/"&imagename)

This might have the advantage of being stored rather than generated each time like an "If" (is this right???)

regards, Jeff

Posted

Actually what I am trying to say is:

If the item has a picture (the picture name is in a related field) show it,

If not put in another (blank) image (blank.gif)

Am I being clear? or am I making no sense?

Thanks

IM

Posted

Hi, that's what I thought you were trying to do!

So, if you have no picture, then the 'photo1' field is empty?

I still think that this is the problem with using the 'If' statement - it can't work with the blank after 'neq.' - so I come back to thinking that it's an easier work-around to do the calculation in the related database and use that field.

Jeff

PS: I have some examples of this if I'm not bieng clear.

Posted

Thanks for all the input. Believe it or not it was just a dumb error. I only had one colon in the relationship portion. Sometimes it is just best walk away, sorry to waste any of your time.

This topic is 8609 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.