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.

Import order across multiple files

Featured Replies

Hi,

I have five .fm databases that I am importing into another database as part of my application.

Currently, I have them set up nicely to import without duplication, yadda yadda...

However, one of the four databases presents a slightly different import order. i.e.

In the four that import correctly, field order in the import dialogue is:

...

Display (imported) -> Display

ID (not imported)

IDX (imported) -> IDX

Type (imported) -> Type

In the misbehaving database, import order is, so what happens is:

...

Display (imported) -> Display

Type (should be imported)

ID (shouldn't be imported) -> IDX

IDX (imported) -> Type

With the result that when my scripts are set to the import order of the first things are mostly okay, but the misbehaving database doesn't import correctly, and if I set the scripts to the import order of the bad one then it's terrible.

How might I be able to align the fields in the import dialogue of the bad database with the other four? Thanks in advance.

Version: v6.x

Platform: Mac OS X Jaguar

It looks like you'll have to define a separate import script for the bad database. Do the import & field mapping correctly manually, then make a one-line script called importB or something. You could also make a one-line import script for the four good ones, call it importA.

In your primary script, set up a conditionsl that tests, somehow, which database is being imported, and do this:

If (BadDatabaseBeingImported)

Perform Script (ImportB)

Else

Perform Script (ImportA)

EndIf

Steve Brown

  • Author

I have done this. I manually created an import script for each database. The problem is that when I change one of the scripts, they all change.

My thought at this point is to clone one of the good ones, and import the data from the bad one into it. It appers to have something to do with the field creation order.

If something goes wrong, then the import will default back to creation order. This will also happen if you add or delete fields from one of the files.

Did you remember to check the "restore import order" box in the Import step in the script?

  • Author

Thank you. I don't think I fully understood what that the "restore order" meant.

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.