Jump to content
Server Maintenance This Week. ×

Container field content formatting


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

Recommended Posts

Morning. I'm linking images into a container field by inputting a link into the container field with the result being an image. This has been discussed on this forum before and works like a charm.

I can however (for the life of me) not figure out how to 'center' that resulting photo within the container field. Can anyone give me a hint?

much appreciated

M

Link to comment
Share on other sites

  • 1 year later...

So, I'm kinda reviving this thread here .. still linking an image into a calculation field (with result container) ..

This time I'm curious as to how I control the 'file not found' message ..

I'd like to let the user know that they in fact haven't put a file in that particular folder rather than the system telling it that it can't find it ..

Is it possible to do such a thing?

I tried to put an if statement into the calculation:

if( get(lasterror) = xxx ; 'link to no file found image' ; 'link to actual image')

I tried various error codes (instead of the xxx) but to no avail ..

help?

Link to comment
Share on other sites

This time I'm curious as to how I control the 'file not found' message ..

I'd like to let the user know that they in fact haven't put a file in that particular folder rather than the system telling it that it can't find it ..

Is it possible to do such a thing?

I think this type of error can only be caught in a script. The container's value is only deferenced at the time the container is displayed.

You could explore triggering a script (FileMaker 10 or later) when the record is displayed that would attempt to validate the reference by inserting it into a non-visible global container field to catch the error. The user would still be shown the built-in error message inside the original container, but you could pop up a dialog that is more descriptive and provides scripted options.

Link to comment
Share on other sites

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