Newbies Teo Posted November 21, 2005 Newbies Posted November 21, 2005 I am wondering how to use a file reference that is in another field (File Path) to grab and insert a picture from a folder on my desktop into a container field (Image). Suggestions? Any are greatly appreciated! Thanks, -Teo
Fenton Posted November 21, 2005 Posted November 21, 2005 When asking about container fields and image files it's important for you to say whether you really want to "embed" the image entirely, so that the actual binary data is permanently in the FileMaker container field (which is an action, scripted), or only "display" a picture file, which is only referenced from FileMaker to the file's location (which must remain fixed). These are 2 different things. The latter is possible via a calculation. From what you say above, using a file path in a text field to "grab and insert a picture", the answer would have to be "No, not unless you use AppleScript"; unless you want to manually go find the file, which I doubt. If you mean, "display a fixed location picture file" the answer is "Yes, but what syntax is the file path? Mac (with colons)? FileMaker (with slashes)? Unix? Is it a full path? In short, what does it look like? There are further considerations if the file is referenced, but you're in a networked situation.
Newbies Teo Posted November 21, 2005 Author Newbies Posted November 21, 2005 Thanks for your response Fenton. My intentions were for the latter option of "displaying a fixed location picture file". The syntax of the file path would be styled as such: file://Macintosh HD/users/home/Desktop/image_folder/image.jpg Thanks again, -Teo
Fenton Posted November 21, 2005 Posted November 21, 2005 You just need the calculation to Substitute a little bit, result Container: Substitute ( filePath; "file://"; "imagemac:/" ) ImageAbsolute.zip
Newbies Teo Posted November 22, 2005 Author Newbies Posted November 22, 2005 That did the trick, thanks Fenton! -Teo
Recommended Posts
This topic is 7287 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now