CSV Import - Multi-Item List Field Workaround

By Rusty - February 9, 2011

So, since the CSV Import currently doesn't have any way to handle Multi-Item List Fields what are the work arounds?

I've already tried every combination of configuring my CSV file, formatting it to look just like the CSV Export, and was saddened to see that it just wouldn't work.

In terms of the work around, the first thought I had was...

1. Go to phpMyAdmin
2. Go to my Datbase
3. Go to my Field that I'm trying to Import data into
4. Figure out a way to paste the same values for the Multi-Item List Field into all the records

Again this isn't a true work around since it's appending the exact same values to a series of records in a table, but it's easier than requiring my admin to go through and check HUNDREDS and HUNDREDS of values by hand.

Thoughts, Suggestions?
Rusty

Re: [Rusty] CSV Import - Multi-Item List Field Workaround

By Rusty - February 9, 2011

I know I can manually go through and edit each record individually, is there a simple way to replace the field for ALL the records in a table?

Right now I've only got about 100 records in the table, enough to be a pain but not impossible to do by hand, but I will have many many more.

I'm looking for an easy way to replace/update the values for a multi-item list field across the entire table.
Rusty

Re: [Rusty] CSV Import - Multi-Item List Field Workaround

By ross - February 10, 2011

Hi Rusty

I am not quite sure I understand the problem but it sounds like you are trying to import or export a field that is basically a list of values separated by commas (CSV). Does that sound right? Maybe you could give me a sample of the data you are working with.

On the other hand, if you are looking for a way to update the values in one field for all records in a table, you can always do it using the MySQL console plugin (free)

http://www.interactivetools.com/add-ons/detail.php?MySQL-Console-1011

That lets you run SQL right on your database. Make sure to always have backups before doing anything with this plugin :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [Rusty] CSV Import - Multi-Item List Field Workaround

By Rusty - February 11, 2011 - edited: February 11, 2011

Nevermind, I came to the answer myself. Trial and error :D

the mySql Plugin works great. I was able to update the Table field "permission" by dumping in the Tab Separated values and it took to the checkboxes no problem. Going to try the Drop Down List now... Just wanted to be able to visually see the entire list at once, to make sure that the scrolling action to see the entire list didn't screw it up and somehow un-select a bunch of the options.

Thanks for the help!!

PS. Is there an easy way to modify how many "Rows" or options are shown by default with a Multi-Select Drop Down list?

I know we can manually spec a height for a text input box etc from advanced options..
Rusty

Re: [Rusty] CSV Import - Multi-Item List Field Workaround

By Chris - February 19, 2011

Hi Rusty,

That's a great idea. No, unfortunately there's not, but I will add that to our wishlist. Thanks!
All the best,
Chris