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.

Combining multiple records into one

Featured Replies

Hello,

I am new to FM and having some difficulty with combining data.

This is my issue... I am importing my orders from a csv file into my FM database. The CSV file has 3 to 4 rows of information (attribute options) for the same product.

How do I make one record of the product with all the attribute options? Would it be a calculation and if so, what would it be? Any help to point me in the right direction would be greatly appreciated. Thanks in advance

It depends on wheat the attributes are.

If they are things like colour and size (where the product can only have one of each) then it may be appropriate to put the data into a field, and there is a field for each attribute. If however the data is something like "features" where a product can have many (eg, product plays CD, DVD MP3, DIVX) then the data should probably go into related records.

  • Author

Thank you for your response. That's exactly what the fields are (size and color) but the source file list the product twice one with the color the other with the size. I want to combine that info into one order in the target file instead of having the order listed twice or more depending on how many products and attributes are in each order... any ideas?

An example of the source CSV would be useful.

  • Author

Hi comment,

You can view the file here

As Vaughan implied, you'll need to import the same file three times. This can be automated by importing into a temp table, then doing the three imports from there.

Use field validation to prevent duplicate records: in the Orders table, validate ORDER_ID as 'Unique, Validate always'. Do the same for the PROD_CODE field in the LineItems table. I am not sure why every line item has an additional row with no attributes, but if that's how it goes, validate the PROD_ATTR field in the LineItemAttributes table as 'Not empty, Validate always'.

  • Author

Thank you, I will try it that way.

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.