Newbies furnk Posted January 9, 2008 Newbies Posted January 9, 2008 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?
Fenton Posted January 9, 2008 Posted January 9, 2008 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".
Recommended Posts
This topic is 6154 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now