Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I am running server 10 advanced on a windows server2003 network with mostly windows clients running FMP 10. I have a little file that serves up some PDF documents from a shared network folder. The path to these files is stored and a calculation field that results in a container.

The solution will copy a pdf from the network folder to the users temporary directory and open for them to view.

Until recently there was only a need for the solution to work in a windows environment but it has become necessary to modify the solution to also work with Mac clients. I have bought a mac mini running os 10.5.8 to use in development and testing. I think I have successfully binded it to my windows2003 domain as I can log onto it with my network user name and password and I can see most of the other computers and can in fact open the folder where the PDF files I’m concerned with in this instance with the finder.

So a little bit about the solution.

I have a setup table that has a text field called path that is use to store the folder path used in the container calculation. Now I have added a second filed called PathMac that holds the mac path.

eFilesSetUp::efilePath = filwin://FileServ/T_Drive/e-files/

eFilesSetUp::efilePathmac = filemac://FileServ/T_Drive/e-files/

In the main table I have a text filed called filename that stores the filename and a calc field called container with the following calculation.

If(Get ( SystemPlatform ) = -2;

eFilesSetUp::efilePath & Filename;

eFilesSetUp::efilePathMac & Filename)

Using a dialog box to display the container field the results are as expected.

On a Windows Client its

filewin://FileServ/T_Drive/e-files/filename.pdf

and on Mac its

filemac://FileServ/T_Drive/e-files/filename.pdf

Im fairly certain that the script steps pertaining to the temp directory are working because at one point it was exporting the literal text of the container filed. I am assuming that at that point it did not understand the export path. Now however it errors with error 100 file is missing

I can use the finder to view the PDF files and when I use the get info command I see the following

Where /Volumes/T_Drive/e-files

Server smb://FileServ/T_Drive/e-files/filename.pdf

Thanks in advance for any help on this

The filemac: path format is wrong - there is only a SINGLE slash in filemac: paths.

The "//" only applies to Windows networks and is not available in the Mac world.

  • Author

ok now the filemac path is

filemac:/FileServ/T_Drive/e-files/filename.pdf

but I still get the same error 100

Okay - but you are still trying to create the file on the server. Try doing it locally first.

I suspect the "volume name" is wrong for the Mac environment, so do a simple test by trying to store a file FROM the server BY REFERENCE and then look at the path information for the file by using the GetAsText function.

Edited by Guest

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.