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.

Modifying number of columns in Excel export

Featured Replies

  • Newbies

I have a system which requires me to export packing slips in an unusual way. Each shipment is a row, with the last "x" number of columns representing the packages (or line items) in the packing slip. For example, if I am shipping three items, I will have columns for job number, address, csz and then three additional columns, one for each item.

I may have two items or I may have 20 items.

Currently, I control this by adding and removing fields from the export database so that each item gets its own column. The actual data is the number of items going to each location.

This works great if I am the one creating each shipment, but I would like to be able to take a vacation.

How do I script either the creation (or deletion) or fields, or, alternatively, script the creation of columns in the excel export?

Thanks for any help!

Jason Tempestini

I don't see why you need to remove fields, rather than just leave them empty (assuming you have enough fields to accommodate the maximum ever required).

Anyway, if you can accept a text format that Excel can import (.tab or .csv), then this could be produced by exporting as XML.

  • Author
  • Newbies

You know, this post and an earlier post about omitting field names as column headers and hand-coding the first record to act as column headers solved this problem.

Thanks!

Jason Tempestini

I'm glad to hear you worked it out, but "hand-coding the first record to act as column headers" is not something I would recommend.

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.