Manipulating CSV Exports

Exchanging data between systems has always been a matter of format. The output systems needs to output in the expected input format for the inbound system - and it works the same way when going in reverse.

When it comes to data interchange formats, some of the most prevalent are arguably CSV (comma separated value) and Tab delimited.

The problem with these formats however, is that one person’s CSV is not necessarily another’s. The CSV “standard” actually has no standard. There is an RFC (Request for Comments) document to act as a guideline, but it’s not an “official” standard.

For FileMaker, the standard CSV export format is lacking one very important aspect. It does not include the field names as possible headers in the resulting file.

Added to this, is the fact that you can’t just specify any encoding format on all the various export options. You are limited to the formats specified by FileMaker per export type. There are some systems where you absolutely need a more up-to-date encoding format such as UTF-8.

FileMaker also exports hard returns as the vertical tab character and this needs to be fixed for some importing operations. This video and technique file addresses all of these issues and showcases how to take advantage of some of FileMaker’s other export formats in order to make sure your data does its interchange with other systems in the expected fashion!

AttachmentSize
ManipulatingCSVExports.zip280.29 KB
Tags:
CSV

Comments

Matt, great presentation as usual. I was wondering how you could view the temp folder (S10)?

When you are walking through the script with a debugger, anytime you use the Get ( TemporaryPath ) you can copy the path that is created. The OS version of the path is what you want.

In Macintosh you simply select a Finder window and then use Command-Shift-G. This will prompt you to go to a specific folder. This is how I typically do it.

In Windows, you simply use an Explorer window and paste in the path.

This allows you to check out the file as you debug a script.

-- Matt Petrowsky - ISO FileMaker Magazine Editor

Hi Matt, thanks for this video, would the plugin work in FMP Pro Adv 11? If yes, I am a newbie in FMP and do you have video how to install the plugin? Thanks

JohnM