Solved

Creating script to populated empty containers with images

Posted on 2006-11-28
5
241 Views
Last Modified: 2010-07-27
If I had a field called IMAGEPATH, is there a way to create a script that will use the field as the actual image path to insert an image from my hard drive in an empty container in the same record?

What I am hoping to do is have the script check for empty containers throughout my database, and fill them with images on my hard drive using the imagepath field to guide it to the appropriate image for that container.
0
Comment
Question by:jarrodprice
  • 3
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
lesouef earned 500 total points
ID: 18036717
the trick is to declare a variable $imagename = the field which contains the image path, and use this variable as the file reference for the insert file or picture command (you type the variable name in the window where you normally insert a real path for the file to import.)
to insert a file, use a filemaker path (must be specified as filemaker file references, not as the OS path, that is:
file:/C:/Documents and Settings/Utilisateur/Mes documents/ttt/smorsche.jpg for a file or
image:/C:/Documents and Settings/Utilisateur/Mes documents/ttt/smorsche.jpg for a picture
relative paths are also ok:
image:./ttt/smorsche.jpg

so if the paths you have are not formatted like this, you need to work the rigth syntax out of yr existing paths first. but this is normally a bit of subsitute steps when creating the variables; let me know if you need help for this too.
0
 

Author Comment

by:jarrodprice
ID: 18037045
I am confused.  If my image path was "C:/Documents and Settings/Utilisateur/Mes documents/ttt/smorsche.jpg", and that was the content of my imagename field, how would I right the script to start at the first record, and for each record with an empty container, insert an image in the container using the path from the imagename field for that record.  How should I write the variable in the script? what should the syntax be for the image path?  In the "insert image" command, how do I write the path?
0
 

Author Comment

by:jarrodprice
ID: 18037316
disregard...I got it.
0
 
LVL 28

Expert Comment

by:lesouef
ID: 18037354
if you say so... otherwise I am back behind my keyboard...
0
 

Author Comment

by:jarrodprice
ID: 18037422
No it is working perfectly.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Database Design help 20 281
Mysql ODBC Drivers for Mac 2 917
FMP auto filed input? 3 113
filemaker server 14 default database directory 1 57
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

709 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now