Solved

How to open a folder in Filemaker that is loacted in a folder on the server with open url?

Posted on 2011-09-28
16
617 Views
Last Modified: 2012-05-12
I have FM 10 Pro Advanced.  My users have just Pro.
I would like to be able to create a button on my FM layout so when a user clicks on it it opens a folder with files in it.
But the folder is located on the server on dirve letter 'j'.
How do I get that folder to open up so users can use the files they need from there?
0
Comment
Question by:j_rameses
  • 8
  • 8
16 Comments
 
LVL 25

Expert Comment

by:Will Loving
ID: 36718887
Very simple to do using the Open URL script step.

Open URL [ No dialog ; "File://j:/SomeDirectory/SomeFolderName/"]

Create a button and then set it to trigger this script step with your folder path included in it.

For more details, see:

http://www.filemaker.com/11help/html/scripts_ref2.37.63.html
0
 

Author Comment

by:j_rameses
ID: 36719043
I did as above but it changes to this:
"No dialog ;\"File://J:/Scan Documents\""

Nothing happens.
I am using my computer and trying to access a folder on the network share server.
That is what I am trying to do.
0
 

Author Comment

by:j_rameses
ID: 36719089
Is there any other script I need to include,
Even with the "no dialog" I still get a popup to confirm the url.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 25

Expert Comment

by:Will Loving
ID: 36719114
Your quotes have been have had escape characters added to them The path should simply be:

File://J:/Scan Documents

 Open URL Options
 Button Setup
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 36719127
The 'escape' characters are  the backslashes. Just type in

File://J:/Scan Documents

in to URL Options and it should save it with the appropriate set of double quotes, one on each end.
0
 

Author Comment

by:j_rameses
ID: 36719181
Will,

I did that.
Nothing happens.
We are running Windows, your images are Mac.
The folder does not pop-up.
If I try it on one of my folders on my desktop or in my 'C' drive directory it pulls it up.
But, if I try to access a folder that is on the network, it does not pop-up.
Is there a different structure for Windows or for accessing the a network folder?
0
 
LVL 25

Accepted Solution

by:
Will Loving earned 500 total points
ID: 36719198
You may or may not require an additional forward slash at the end to open a folder. On the Mac it doesn't require it but I don't have Windows booted up at the moment to test. I think it will work either way:

File://J:/Scan Documents/

or

File://J:/Scan Documents

You should only get a Confirm dialog if the URL is invalid, which your original one is.
0
 
LVL 25

Assisted Solution

by:Will Loving
Will Loving earned 500 total points
ID: 36719214
Is the j drive already mounted? Try mounting it, go to your Scan Documents folder and then check the full path in the Properties dialog. It might require an additional something to the string to access a folder in a network drive. I'll see if I can check it out. Most likely the j drive would need to be already mounted at a minimum.
0
 

Author Comment

by:j_rameses
ID: 36719225
How do I mount it?
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 36719243
0
 

Author Comment

by:j_rameses
ID: 36719263
You mean, "Map" it.
I did that years ago, it is under drive "'K'.
I will try it under that drive letter.
0
 

Author Comment

by:j_rameses
ID: 36719288
Ok, it opened it under drive letter 'K'".
I wonder if another user from a different computer clicks on the button, but the Mapped drive is a different letter, will it open?
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 36719346
If the path is hard coded in the Open URL script step and the network drive is mapped to a different letter then it will fail. If there is a way to dynamically determine the letter you could try to do that by using a calculation in the URL path, but your best bet is to simply make sure all computer use the same mapping (which from an organizational standpoint is a good practice anyway).
0
 

Author Comment

by:j_rameses
ID: 36719376
Yes, I just checked.
It did not work.
I will have to check everyone's computer to see what is their map letter.
I wish it could be dynamic.
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 36719445
Hard to make something dynamic that is manually set by many different people. It might be possible to make a script that runs through a list of possible drives letters and keeps checking until it finds one, but much better just to have everyone be consistent.
0
 

Author Comment

by:j_rameses
ID: 36719593
True.
Just started changing some of the PCs drive letter.
Thank you.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filemaker script send mail ATT00001.bin attached 7 805
FM External Data Sources Tables 3 574
Filemaker Pro 10 display order 2 49
Job Transaction Field totals 6 57
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question