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.

auto enter picture in container field possible?

Featured Replies

Hi,

I use a plugin from newmillenium to export pictures. The one problem I am having is that when a record has an empty container field, it gets filled in with another record's picture. I wrote to newmillenium about it and I am awaiting an answer. That prompted me to want to put a default image in my field that says "picture not available yet". Is there a way to auto enter that?

Thanks in advance

Luc

Case ( IsEmpty (container_field ) ; picture_not_available.jpg ) (auto-enter calculation with result container). (I'm on 7, not 6, so cannot test, but should work.) The file picture_not_available.jpg should contain your default picture.

  • Author

Hi Transpower,

Thanks for the prompt feedback.

If I understant correctly, the file "picture_not_available.jpg" would be in a folder somewhere on my hard drive? If so, that could be a problem as I'm on a network with 13 other users and using FMSErver as well.

Am I out of track with that assumption?

:-)

Luc

  • 8 months later...

Did you get this working? I am actually trying to show a picture in a field based on a calculation.

Thanks,

J

  • 3 weeks later...

Did you get this working? I am actually trying to show a picture in a field based on a calculation.

Thanks,

J

I've been trying to do this as well, only in FM7, since the client doesn't want to upgrade. I understand it can be done in 8 with a variable. Any ways to do this in 7?

I've been trying to do this as well, only in FM7, since the client doesn't want to upgrade. I understand it can be done in 8 with a variable. Any ways to do this in 7?

I feel a little stupid, but I'm replying to myself, as I got this working in FM7, thanks to this post here:

helpful message board posting

This was the most helpful part:

"The calculation must result in a string representing the file path in the

same format used by the "Insert Picture/QuickTime/File" script commands.

(Just an in any calculation, literals must be enclosed in quotes.) Supported

formats for the pathname include the following:

file:directoryName/fileName

filemac:/volumeName/directoryName/fileName

filewin:/driveletter:/directoryName/fileName

filewin://computerName/shareName/directoryName/fileName

image:directoryName/fileName

imagemac:/volumeName/directoryName/fileName

imagewin:/driveletter:/directoryName/fileName

imagewin://computerName/shareName/directoryName/fileName

movie:directoryName/fileName

moviemac:/volumeName/directoryName/fileName

moviewin:/driveletter:/directoryName/fileName

moviewin://computerName/shareName/directoryName/fileName

"

The posting mostly sums up how to do it. I just did a Set Field Calculation for the container field that had the correct (calculated) path. The kicker for me was getting the path format correct enough so that the container field would accept it, and set up the reference.

Anyway, I hope that helps someone else out there! And thanks to the original poster whoever they may be.

Sorry for the slight hijack of this thread, but it seemed related.

Edited by Guest

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.