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.

Export text with a header

Featured Replies

How to add a header to an exported text document

1) I am exporting about 10 records or so to a text Document. I need a particular text string that always stays the same to be the very first item in the text document. Is there any way to get filemaker to insert the text string at the first of the text file as it exports. The string never changes. I know I could create a field in filemaker and enter the text string in only the first record and not the rest of the records, but just wanted to know if there was a more elegant way.

LR

[ March 24, 2002, 08:49 PM: Message edited by: Larry Ross ]

  • Author

Actually, I figured out the answer.

I have a text field in each record called "bodycopy" that when the database is exported as a text file, this particular field is always the first item of each record exported.

I added 2 calculation fields to each record:

1) Status(CurrentRecordNumber)

2) If(Number = 1, "headertexthere", "") & bodycopy

What this did was copy my text from my "bodycopy" field and at the same time looked at the field "Number" on each record, and on the record with a "1" in this field it added "headertexthere" to the front of my bodycopy.

Now when I export the database to my text document, the text document starts off with my header text string that I wanted.

LR

[ March 24, 2002, 09:05 PM: Message edited by: Larry Ross ]

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.