Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Displaying images using paths

Featured Replies

  • Newbies

Hi,

Sorry if this is too basic a question, but I've looked all over without finding an answer...

I have a database where one image is associated with each record, and I want to be able to make a layout that includes a preview of this image. Is there a way to include only the path in a field in the database and then have it automatically display the image at that path in a layout? (I would like to be able to easily make changes to the images, and not have to worry about the database getting too big, that sort of thing, by keeping the images separate.)

Any ideas?

Thank you very much!

Hi tbszxcvbnm

Welcome to the Forum.

Please update your profile to show what Platform, Operations System, and Version of FileMaker you are using. You will find the link just below you Name on the Left, in blue "[color:"blue"]profile".

Lee

  • 3 weeks later...

I would also like to know how to do this.

Lee do you know how?

This can be done by creating a Calculation field with a calculation such as:

"image:/Images/" & file name

The calculation result needs to be a Container. If your images have the same name as a value in a field in each record (with ".jpg" at the end of the file name), you can use a calculation such as:

"image:/G4/Applications/FileMaker Pro 7/Web/Images/" & IMAGE NUMBER & ".jpg"

IMAGE NUMBER is the name of the field that has the same value as the name of the image file. This will automatically pull in your images (I believe it is a reference only, and not the actual image file) from that referenced folder. If you are going to publish to the web via IWP, the images need to be in the Web folder in your application is.

See this thread:

http://www.fmforums.com/threads/showflat.php?Cat=0&Number=124190&an=0&page=0#124190

That's exactly what i needed to know!

Thanks so much par cool.gif

Has anyone figured out a trick to get IWP to display images that are located on another server. I've tried a calculated container field which works within FM Server but not within IWP. Its very limiting that the images have to be located on the FM server in a specific folder.

Noooo; it's just that ANY web-served data of any kind has to be in a folder that the web server has privileges to publish. Try creating a straight static HTML web page with an image link. No Filemaker involvement of any kind. Can THIS page display data from arbitrary locations on your hard drive? No. Your question has nothing to do with Filemaker. It's about web servers and web server privileges.

Gotcha. The FMP documentation states that images server by IWP have to be on the FMP server in a specific location.

I figured I could serve the images via CWP (straight HTML) but was trying to get out of developing a full site with CWP.

Thanks for the info.

IWP can handle images in the FileMaker Web folder, or in a web server folder.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.