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.

Opening a file by 'Open URL'

Featured Replies

Hi all

I try to open file by 'openurl', following is my path.

H:coh-itAdminDomain Names RegistrationDomain Name in PDFDN (.com.xx)xxx.pdf

Actually I was still working on the file, but few days back I have managed to do this right already. But today my openurl dun works. After playing with it I realise it only opens up to 2 path. e.g. H:xxx.pdf then it will works.

If more then 2 path e.g. H:coh-itxxx.pdf, it wont works the file wont be able to open. And oddly H:xxx.pdf works.

I have access to these files, i can manually go into these folders then file to open it but not through my 'openurl' button.

Can someone help me with this..?

Thanks a lot

Kelvin

Kelvin,

Personally, I would use Send Event rather than Open URL. Why? I guess because you are not really trying to open a URL. (Uniform Resource Locator. i.e. a web page) You're opening a file or folder on your PC right?

To open a folder try something like this:

Send Event ["explorer.exe " & Quote ("c:folderfolderfolder")]

To open a file:

Send Event

  • Author

Hi Ted

Thanks for your response. I manage to find the cause of the problem already. Filemaker is not able to open file by reading its shortcut.

And I tried both 'openurl' and 'sendevent', and oddly openurl works but not sendevent. It prompts me this error,

"The file "H:coh-ITAdminDomain" could not be found and is required to complete this operation".

But nvm sice my 'openurl' can work already ???

I have another problem now. My file will be park in server, Users will access it through IWP. And thats actually the reason why i use 'openurl' :

But the problem comes now, though it works in filemaker client, but it can't works in iwp. The file wont be launched. It shows the normal error browser page.

Anyone know what to do..? Else my file wont be a perfect solution already.

Thanks a lot

Kelvin

  • 2 weeks later...

I expect the reason you are seeing the error on SendEvent is due to the space in your file path. Try putting quotes around the entire path in your script.

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.