Skip 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.

Question on Containers with Graphics

Featured Replies

From a script, how can I determine what type of graphic file is held in a container field? (a container field defined to hold a graphic and not a file reference to the graphic) From the help file:

FileMaker Pro supports the following picture ... formats: EPS, FPX, GIF, JPG etc., etc. (17 in all).

.

You can add a graphic to a container field by inserting it, using drag and drop, or by pasting the graphic from the Clipboard.

If the user drags a graphics file from another application and drops it in the container field, does FileMaker keep it (internally) in its original format? -- or does it convert to some internal representation and, if so, what is it?

If the first case is true, is there a script operation that can read the file type currently in the container?

And a related question: if the user drops a file into the container and drags it out to another application, what file format is dragged out?

I've found nothing in FileMaker's online help that seems to address these issues. Any help will be appreciated.

Could use a custom function something akin to the following:

GetFileExtension ( ContainerField )

Let( x = GetAsText( ContainerField )

Case(

PatternCount( x ; ".JPG" ) ; ".JPG" ;

PatternCount( x ; ".EPS" ) ; ".EPS" ;

PatternCount( x ; ".FPX" ) ; ".FPX" ;

PatternCount( x ; ".GIF" ) ; ".GIF" ;

...

...

...

)//End Case

)//End Let

Then during your script just use the GetFileExtension( containerfield ) function, passing the container field where it says "containerfield" and it should return the extension for you

Out of curiosity, what are the 17 formats?

RE: The drag and drop, even if FM does convert it to some sort of "internal representation" it is ... unconverted when you export it in any shape or form (including dragging to another app).

  • Author

Thanks for the recommendations.

The documention actually lists 18 formats:

Encapsulated PostScript (.eps)

FlashPix (.fpx)

GIF (.gif)

JPEG (.jpg)

JPEG2000 (.jp2) MacOS

MacPaint (.mac) MacOS

PDF (.pdf) MacOS

Photoshop (.psd)

PICS (.pcs) MacOS

PICT (.pct)

PNG (.png)

QuickTime Image (.qt)

SGI (.sgi)

Targa (.tga)

TIFF (.tif)

Windows Bitmap (.bmp)

Windows Metafile (.wmf)

Enhanced Metafile (.emf)

Four are noted as "MacOS". Does anyone know if they will be accepted by FileMaker running under XP? Just curious.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.