Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6621 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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.

  • 4 weeks later...
Posted

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!

This topic is 6621 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.