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.

Multi-record value, but only in the first line

Featured Replies

  • Newbies

Hello people! :) This is my first post!

I came here, hoping for some help with FM import.

I have a CSV file that has a series of multi record values, but written only in the first line:

(Mr - multi record, SR - single record)

MR1 ; MR2 ; MR3 ; SR1.1 ; SR1.2

; ; ; SR2.1 ; SR2.2

; ; ; SR3.1 ; SR3.2

; ; ; SR4.1 ; SR4.2

The problem I have is with import - I would like the import this file in a way that all the lines have the same MR1, MR2 and MR3 values, with their own, unique values.

Thanks a lot!

After importing, run a script:

Go to Record[first]

Set Variable[$mr1; Value:MyTable::MR1]

Set Variable[$mr2; Value:MyTable::MR2]

Set Variable[$mr3; Value:MyTable::MR3]

Replace Field Contents[No Dialog; MyTable::MR1; $mr1]

Replace Field Contents[No Dialog; MyTable::MR2; $mr2]

Replace Field Contents[No Dialog; MyTable::MR3; $mr3]

If you script the import, these lines could be in the same script, after the import step.

Import Records automatically makes the imported data the found set. Make sure you do not do anything between importing the data and these script steps that would cause the found set to change.

  • Author
  • Newbies

In the meantime I've made an AutoIt script that, using a Notepad++, converts the output into a valid file. I will try to see if this would be the better (faster/simpler) way of doing it.

!

Thanks a lot! :-)

After importing, run a script:

Go to Record[first]

Set Variable[$mr1; Value:MyTable::MR1]

Set Variable[$mr2; Value:MyTable::MR2]

Set Variable[$mr3; Value:MyTable::MR3]

Replace Field Contents[No Dialog; MyTable::MR1; $mr1]

Replace Field Contents[No Dialog; MyTable::MR2; $mr2]

Replace Field Contents[No Dialog; MyTable::MR3; $mr3]

If you script the import, these lines could be in the same script, after the import step.

Import Records automatically makes the imported data the found set. Make sure you do not do anything between importing the data and these script steps that would cause the found set to change.

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.