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 Header/Detail Info in same file....

Featured Replies

Hi Guys,

I'm trying to write information to a single ACSII file. I would like the very first record to contain descriptive information about the file. i.e. external filename, number of detail records, totals, and possibly a transaction date. The detail records containing information found within a specific subset from the database. Is this possible?

Thanks

I'm not aware of any direct way of doing this, but you can do it with a calculated field and a dummy header record. The header record is just another record but is sorted to the top of the set.

To make sure that this record is the first to export, create a field called 'Header'. Put some value in that field in the header record, and leave it blank in all others. Put Header at the top of your sort order and set it to sort in descending order.

Then you create a calculated field to export.

Eg, if you have the following fields that you want to export:

text1

text2

text3

numbr1

numbr2

numbr3

and your header information is in a global field called 'gHeaderInfo'

then your calculated field 'Export' would be:

Export =

Case(not(IsEmpty(Header)),gHeaderInfo,

1,

text1 & "," & text2 & "," & text3 & "," & NumToText(numbr1) & "," & NumToText(numbr2) & "," & NumToText(numbr3),

Kind of messy huh? tongue.gif

[This message has been edited by BobWeaver (edited January 12, 2001).]

  • Author

Thanks Bob,

I'll give this a try...

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.