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.

generating html files

Featured Replies

  • Newbies

I want to easily generate HTML for a job openings page through a script in Filemaker. I currently have a table with four fields -- company division, job title, job description, and a yes/no for "currently hiring."

Is there an elegant way to export all of the "currently hiring" records to a single html page, sorted by company division, with my custom HTML (for headers, styles) already built in?

You could do this with XML Export, with an XSL stylesheet. XML and HTML are close relatives, perhaps siblings, so they work well together. The big advantage of XSL is that you can arrange things pretty much as you like (within reason). You can either insert the CSS data on the resulting HTML page itself, or add a CSS link to a CSS file.

There are a couple of HTML export examples at FileMaker's XSLT Library page:

http://www.filemaker.com/products/technologies/xslt_library.html

That's the "elegant" way. Otherwise you could build the HTML into a FileMaker field (global likely) via a script, then export just the 1 record, 1 field. Or write it out with AppleScript and shell script. You may think of using Export Field Contents for this. But it writes out as UTF-16, no other option. Web browsers (currently) do not like utf-16. They like utf-8 fine, which is what you get when you use AppleScript and "do shell script".

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.