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.

Insert Row between each Record on Export Records

Featured Replies

I am trying to export records from filemaker to excel. However, I need some records to be duplicated 1-4 times in seperate rows in excel if those fields are occupied with a text value in the filemaker record. I need those values to appear in the following excel rows. Any help will be highly appreciated.

You might need a temporary “scratch”  table for the export where a script creates the records. Or, a virtual list. 

  • Author

Thank you so much for your response. can the script be something like this: loop through the browsed records, if field x is not empty, duplicate the record and so on for all other fields? and then export to excel from this table.

On the other hand, I need to learn about the virtual list! 

I cannot thank you enough for your answer.

This seems quite similar to: 
https://fmforums.com/topic/108724-insert-row-between-each-record-on-export-records/

So the first question would be: must the exported file be in .xlsx format?

 

6 hours ago, nabil deeb said:

can the script be something like this: loop through the browsed records, if field x is not empty, duplicate the record and so on for all other fields? and then export to excel from this table.

 I don't think you want to duplicate the original records in their original table. That would make the original data unusable for any purpose other than the export. But you certainly could do this in a "scratch" table, as suggested. 

 

 

  • Author

Yes, I need the exported file to be in .xlsx format. and sure, I do not want to duplicate the original records in their original table.

Thank you, I will give it a try.

Good.

BTW, you don't have to loop. You could do something like:

1. Find the records you want to export in the source table;
2. Delete all records in the target ("scratch") table and import the records from the source table;
3. In a new window, constrain the found set in the source table to records that have data in field X and import them into the target table;
4. Close the new window and repeat #3 for any additional fields;
5 If necessary, sort the records in the target table to keep "siblings" together.

 

  • Author

This is great. Thank you so much for your help.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.