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.

Importing CVS file contents to 1 field

Featured Replies

I am wondering if there is a way to import the contents of a CVS file into 1 field, much in the same way you can import the contents of a txt file into a field.

Thank you,

Fed

I’m wondering why? Usually it’s the opposite. 

  • Author

Its complicated. Has to do with billing verification and logs. 

Can it be done? 

Strip all of the delimiters out of the .cvs file using a text editor?

Without seeing the text, it is hard for me to see what you are doing.

Open the .csv as a new FM file name Utility. Create a calculation field in Utility named Join and make the calc

f1 & "," & f2 & "," & ... & fn// where n is the number of fields in the converted .csv  .

Relate  the utility file to your main table by an X relationship.

Set your target field (by script or auto-enter) to List(Utility::Join). Note that you cannot make your target field a calc field.

 

EDIT:  If it were me, I'd parse the data in the Utility table and import just the necessary fields into my main table.

Edited by doughemi

20 hours ago, fed said:

much in the same way you can import the contents of a txt file into a field.

How exactly can you do that?

--
P.S. If you really need to insert the contents of a text file into a text field (and I would also ask why this is necessary), then it I believe it would best to use either a plugin or an OS-level script.

Edited by comment

  • Author

I'll just copy and paste. I've been doing that for 4 years now.  But the number of files have been increasing and I'm up to 20 now. It takes a bit of effort and concentration to get it right.

Thanks anyhow. 

2 hours ago, fed said:

I'll just copy and paste. I've been doing that for 4 years now.  But the number of files have been increasing and I'm up to 20 now. It takes a bit of effort and concentration to get it right.

Pardon my being blunt, but this is ridiculous. If you want to automate the process, then do so. Solving this using AppleScript (seeing you're on OS X) or a plugin such as Base Elements (free) is trivial. If you want to give up, then give up and don't whine about it.

  • Author

I'm not whining.  I was just stating that I was giving up on. FMP solution, rather than just abandoning the thread without notice.  I figured that was the right way to proceed. Sorry if that did not come through.

Thanks for the suggestions, I'll try applescripts and check out Base Elements. 

Edited by fed

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.