Just don't select the "store only a reference to the file" when you insert the files. If you script the insert file you can specify that so the user doesn't have to remember to uncheck the option.
When I insert an object I:
- Right click on the box.
- Choose insert an object
- Choose creat from file
- Browse to the file I want to insert
- Check the "link" box
- Choose create an icon
Then my file is inserted as an icon in that box. The icon can be double clicked and opened from its icon. If the file that the icon opens is moved then the link is broken and file can potentially be lost. This is our concern. Is there a way to imbed or permently put these files in the record so this does no occur?
Use Insert File instead. Insert Object uses OLE (Object linking and embedding and this is designed to work from a link to the actual file). It's also a feature that FileMaker has put on its "to be deprecated" list (found that in a Knowledgebase article), so a future release of FileMaker might not have this feature anyway.
is the file shared on a server? If so an export/re-insert script will let you put a file in a container field - export it to a folder on the server - re-insert itself as reference to the one on the server. This way the file size stays small and all users can get to the file. Also it will not matter if the original file on your computer is deleted because that file is now on the server as well. This is fairly safe as long as your server is backed up regularly in case someone intentionally/accidently goes in and deletes files from that folder.
I attempted to insert a file. An icon for the file shows up but I cannot access the file by double clicking on it like when I link a file. Am I doing something wrong?
Right click the container field
Choose insert file
The icon appears ( a word file or other file)
- Can't access the file by double clicking.
Please let me know what I should do.
Double clicking doesn't work to open a file in a container. You need to right click and select export file.
It would be better to put a button next to the image that will run an export script with the open file option checked. you can script it so that it saves the file to the user's temporary filepath, then opens the file. That way the user will not notice the file on their computer and it will be cleaned up when their temporary folder is cleared.
That sounds good. So I can change / insert the file as a button and double click the button to have the file opened?
How exactly do I do that. I have never made a button on this before.
When the file is inserted as a reference you should be able to double click it and have it open. If it is not you can write a script to open it. The script can look something like this.
Set Variable [$temp; Value:Get (TemporaryPath)]
Export Field contents [yourtable::yourcontainer; "$temp"; Automatically open]
Once you have the script, you can go to your layout and choose insert button or use the button drawing tool and draw the button. When you do that the button set up window should show up and you can select Perform script and select your open file script. You can then fine tune the location, size and appearance of the button.