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.

Serving PDF files with WebCompanion?

Featured Replies

  • Newbies

Hi All,

Is there any way to serve some PDF files with webcompanion? I need to create some records each with an associated PDF file. I'd like to be able to have users use the database via a browser, and with a button launch the associated PDF. So far all of my experiments have failed :-(.

For one, I am not sure what to set the URL to in my script. No matter what I do it won't see the PDF file when I use the database from the web.

Any ideas?

CH

I have done something similar using Custom Web Publishing (CWP). I store the name of the file in the database and have the html-format file construct the URL to the file.

Hope this helps.

Garry

  • Author
  • Newbies

forgive me, but what is custom web publishing and html format?

are they additional plugins?

CWP is a system where you build your own pages using HTML with CDML replacement tags. These pages are called 'Format' files. Nothing extra is needed for FM.

Format files are accessed by using URLs or Forms. E.G.

http://localhost/FMPro?-db=mydatabase.fp5&-lay=myweb&-format=mypage.html&-findall

The format files are placed in the 'Web' folder within the FM program folder.

You will see some CDML in action in the 'CDML Forum'.

All the best.

Garry

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.