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.

Featured Replies

Does anyone have a solution for importing from a formated excel file?

I have to use a form provided by my client. The Data is not in simple rows and columns, basically I just want to point to certain cells and let it pull the data out and import them into FM.

If I try to import data using FM, the data is disorganized and shows as separate records instead of 1 record with different fields.

I demoed Excel Extract data and text, a program from www.sobolsoft.com, but the program is not very refined and has NO support.

Thanks for the help

Matt

Edited by Guest

Why don't you import to a temp table, then pick and choose the data from there.

  • Author

Each field shows as a separate record, and the actual data is incomplete when importing from FM. For example: 1 file shows as 55 records.

The form that I have to use is formatted like a word file would look, many cells are combined and there is also a lot of empty space.

I have to process a bunch of these files and the only other alternative is manual data entry.

Edited by Guest

Your best bet is still a temp table and some scripted data mining, as Comment says. If the excel doc isn't following a strict row/column format, it'll never import cleanly in one go.

Import to a temp table, determine rules for what field/records in the temp table should be harvested into a single record (or record set), and formalize those rules in scripts.

If the excel form isn't predictably strange, you're going to have some difficulties.

  • Author

Thanks guys,

I rechecked the data and you were right, it does follow a pattern.

This solution should cover it.

Matt

It doesn't HAVE to be all scripted (although it can). If you can make the 55 imported records related to the single form record*, you can get the data by calculation - for example:

GetNthRecord ( TempTable::f3 ; 15 )

will fetch the data from what was the C15 cell in Excel.

---

(*) If you create a new form record first, set its ID into a global field or a variable, and define a FormID field in the temp table to auto-enter this ID, the imported records will be automatically related to the new form record. This part can (and should) be entirely scripted.

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.