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.

Portals showing images

Featured Replies

I have a specification solution that needs to have up to 5 images linked to 1 specification so I thought I would just relate them. They display fine in a portal along with several text fields. The problem is that I cannot get the images to display through the web companion. The text fields display fine but not the images. I also cannot get even a related container to display outside of the portal.

I am wrong in making them related or should I just insert them into containers within the spec file. My thought was that having 5 pdf's at 100k each and several thousand specs the file will get big and slow quickly.

Any thoughts or ideas.

Wayne

  • Newbies

You are correct to be using a realtionship if not all records have the same number of images. It is what I have similarly decided to do. There are some tricks that you must know to get information to the web via a relationship.

1-The information you are trying to use must be displayed on a layout in your database.

2-You must specify that layout using the -lay CDML variable tag. This can either be done in-line in a link or as a "hidden" INPUT element on a form. In either case it follows the same format as the -DB or -Format elements (-tag=xxxxx).

3-Specifying the fields you want to dispaly is in the same syntax with the field tag as FilemakerPro uses internally: [FMP-Field: realtionship::field] (yes, there are two colons).

Below is some sample code I am using to display images through a portal. Pictures are held through a relationship called gardenPictures and in a field named Picture:

<DIV STYLE="overflow:auto; height:10px; width:120px;">

[FMP-Portal: gardenPictures]

<DIV STYLE="position: relative;overflow: hidden;top: 1px;left: 1px;height: 60px;width: 100px;">

<IMG CLASS="dbDataImage" SRC="[FMP-Image: gardenPictures: tongue.gif" border="0 icture]" WIDTH="69" HEIGHT="52" ALIGN="MIDDLE">

</DIV>

[/FMP-Portal]

</DIV>

I hope this helps.

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.