September 13, 200619 yr Hi guys, I dont know if this is even possible but I thought I would give it a shot. I am using the web viewer to display pdf files. I have an input screen that the user will enter the path of the file. Is there a way to have a "browse" button that will open up a dialog box, so the user can find the file and click on it and have the path entered for them? I have been doing alot of trouble shooting because my users aren't very good at typing in the path of a new file. I have made it as easy as I can by using filepath and keeping the pdf's in the same file as the filemaker file so they just have to type the path from the filemaker file and they still have trouble. It is usually something simple like leaving off the extension or a slash. Is this possible in 8.5? Thanks in advance. Hope springs eternal Mike
September 14, 200619 yr Not with out a plugin. There are several file related plugins you could try Productive Computing's FileManipulator, or Troi File, there are a few others. This would provide you a dialog that allows your users to navigate to a folder or file where can choose the file. The script could put the returned path in to a global field. I just got done doing this for a solution today.
September 14, 200619 yr actually you can do this create 2 fields a text field "path" and global Container field "gFile" then your script using the insert file command will allow the user to choose the file from their buried location. Then set the "path" field to that of the "gFile" then clear the "gFile" field The result would be something like this... file:unit_2b.pdf filemac:/Clients/Project Group/OakWood/pdf/unit_2b.pdf you then would need to parse out the pieces you need or substitute the path you require.
October 10, 200619 yr Could you explain how you did this? I'm trying to view (with the web viewer) a pdf file that is stored in a container field. How do you get the path to the container? I'm a newB, any help is appreciated. Thanks!
Create an account or sign in to comment