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.

Insert Reference $image

Featured Replies

Hi,

I have attached an Jpg image showing how I am trying to insert an Avatar image to a container using a script. My patient file image usually is blank.. this would be a temporary image,,,depending if Male or Female, I intend to stuff 1 of 20 pre images from a preset determined path....to fill blank Patient field by reference.

Seems to be a path problem on the Insert command that works if I hard code the path

Any ideas are help... TIA too

avatars.jpg

the answer is right there on the "insert" dialog: you need to make sure the path is the correct FM syntax which is different than the regular OS syntax:

imagewin:/f:/.....

So you'll need to make sure you create your variable in this syntax.

  • Author

thanks previously.. alittle vague on the format...

Attach image as i tried various formats using this command ,,,my error capture status is 1

This brings up Where do i understand these kind or get info imagewin:/

i.e. syntax example give using [color:red]forward slashes, and [color:blue]my code backlashes..

I tried several combination's thanks for your help

that information

and like these others...

when select import or export commands..

I have no book references nearby...books in storage out of state

Trying to answer most questions via net/online etc

.. Thanks

Error1.jpg

Edited by Guest

This brings up Where do i understand these kind or get info imagewin:/

http://www.filemaker.com/help/html/create_db.8.32.html#1030283

Edited by Guest

  • Author

Appreciate the feedback so far...

Okay.. i think i have the $path exactly

My image container has a button calling this script code..

If path is right... then why isn't the INSERT $path

doing nothing....

eorror2.jpg

Instead of using Insert Picture, simply use Set Field and assign the path directly to the container. Yes, I know it is text value and not a "container" value, but it works to directly create the reference.

If you are still in doubt about the path string you have created, insert a reference to a picture manually and then GetAsText(theContainerField) and see what it says. You are trying to reproduce the filewin: line that you see there.

Edited by Guest

  • Author

Gosh... I have looked at this... path using your suggestion.. Right top image or the container path is same as GetasText, same as Window explorer path..

Do you see anything?

Using the Set Fields or otherwise

your_eyes_better_than_mine.jpg

  • Author

FIGURED OUT THE PROBLEM

I NEEDED A ' GoTo Field'

Then the Insert command

As said.. i still figuring it out..

:):):):):) :)

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.