Jokez Posted September 6, 2005 Posted September 6, 2005 Hello! Im trying to get the path frpm a container field into a field. I am trying with a calculation field and Im doing GetAsText(Picture) but the only thing it is returning are a ?, does anyone have any clue why this doesent work? Regards Jocke
Osman Posted September 6, 2005 Posted September 6, 2005 I tried same calculation on win xp pro and its worked.
Fenton Posted September 6, 2005 Posted September 6, 2005 I believe it only works with local images inserted as reference. With remote images I believe it returns just the name. With embedded images it may return the "?", as it has no idea.
Jokez Posted September 7, 2005 Author Posted September 7, 2005 The only thing I do is to mark the container and then go up under the menu Insert and then choose picture, the picture I select is on my computer. Anyone has an idea? Jokez
Fenton Posted September 7, 2005 Posted September 7, 2005 Look at the checkbox on the lower left, "Store only a reference to the file." If it is not checked then you are embedding the picture itself into the FileMaker container field. Once you do that there is no longer ANY connection to the file. And FileMaker cannot use the GetAsText() function, because it requires the file path. You can however use Length() to see the approximate size, in bytes. You could also another method, such as Import Folder, and import the File Path into a field. Or use AppleScript to get the file path. But both of these must happen when the picture is 1st inserted, because after that there is no connection to the original file. It depends on what your situation is, stand-alone on one machine? network multi-user? which is the best overall method to add pictures. There's several methods: 1. Embed picture in FileMaker 2. Reference picture 3. Reference with calculated path And there's more than one way to do each of those. Import Folder? Insert Picture? Insert Picture, with AppleScript enhancements? Troi File plug-in? Other?
Jokez Posted September 12, 2005 Author Posted September 12, 2005 (edited) Thanx!! That worked like a charm!!! // Jocke Edited September 12, 2005 by Guest
Recommended Posts
This topic is 7110 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