INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: how to export field values as text  (Read 1902 times)

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
how to export field values as text
« on: February 07, 2009, 01:09:40 pm »

I use a custom nested field to specify the subject associated with my audiobooks and ebooks.

I want to export the field values to text so that I can share the subject list with friends who may want to borrow subsets of my books.

The list of subjects is very long and manually typing them is not a desireable option.

I tried exporting my entire library as xml in the hope that I could somehow isolate and edit the field values with some tool like Excel. Unfortunately Excel and Word report errors in the xml created by MC.

The only other solution I can think of is a screen grab with a tool like SnagIt.

Has anyone got any other ideas on how I can get the values of a field into editable text?

Thanks for your help.
Logged

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: how to export field values as text
« Reply #1 on: February 07, 2009, 01:54:44 pm »

Capturing a pane with SnagIt in text mode worked well.
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: how to export field values as text
« Reply #2 on: February 07, 2009, 03:00:45 pm »

have you tried to just select the fields, you are talking about a detailed list? , for instance with ctrl A, and then ctrl C. open something like excel or notepad and ctrl V. always worked for me. or am i missing something.

 :)
gab
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: how to export field values as text
« Reply #3 on: February 07, 2009, 03:01:36 pm »

Use File - Export Playlist and set the format to Text File. Open the result with Excel—letting it's Text Import Wizard import the file (i.e., tell it the file is "delimited" with "|").
Logged

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: how to export field values as text
« Reply #4 on: February 07, 2009, 06:21:41 pm »

have you tried to just select the fields, you are talking about a detailed list? , for instance with ctrl A, and then ctrl C. open something like excel or notepad and ctrl V. always worked for me. or am i missing something.

 :)
gab
Thanks for the tip. ctrl C does not seem to work on the contents of a pane. I could ctrl C the main window but then I end up with 200,000 lines which is not what I want. I only want one instance of each valid value stored in a field.
Logged

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: how to export field values as text
« Reply #5 on: February 07, 2009, 06:23:25 pm »

Use File - Export Playlist and set the format to Text File. Open the result with Excel—letting it's Text Import Wizard import the file (i.e., tell it the file is "delimited" with "|").
Thanks. I think I end up with the same problem as the previous suggestion.

Capturing a pane with SnagIt seems to be a good enough solution. Not very elegant but it works.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: how to export field values as text
« Reply #6 on: February 07, 2009, 06:41:12 pm »

Quote
I think I end up with the same problem as the previous suggestion.

Using "Included Fields" = Only Visible Fields and "Output Range" = Selection in the Export Playlist dialog, you can restrict the export to just what's needed. This is also much more efficient than SnagIt, should you ever need to export 200,000 records. ;)
Logged

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: how to export field values as text
« Reply #7 on: February 07, 2009, 06:49:52 pm »

Using "Included Fields" = Only Visible Fields and "Output Range" = Selection in the Export Playlist dialog, you can restrict the export to just what's needed. This is also much more efficient than SnagIt, should you ever need to export 200,000 records. ;)
I tried this and I ended up with every file. What I want is one instance of each field value. It might be possible to come up with a smartlist to generate only one instance of each field value but I am not smart enough to figure out how to do this.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: how to export field values as text
« Reply #8 on: February 07, 2009, 09:40:53 pm »

Quote
but I am not smart enough to figure out how to do this.

Maybe one of the smart people here take pity on us. But, in the meantime, I'm not letting this go until I've solved it with Excel... :D

1. In Rules for file display for the view, add the modifier Remove duplicates of [nested field]. The "remove duplicates" function will operate on the nested field as a whole, so different combinations of multiple values (e.g., the subject field is a nested keywords field, and multiple keywords are commonly assigned) will count as unique. I don't see a way to deal with that in MC, but it can be handled in Excel without much difficulty...

2. Export a playlist as text, and import it into Excel—as described previously.

3. In Excel, delete all columns but the one with the nested field data. If there are items with multiple values, those values will be delimited by semicolons, so...

4. Save the file as text, close and re-import it as text, this time setting the delimiter as ";".

5. Multiple values will now be separated into additional columns. Cut & paste the contents of these additional columns to the end of the first column. Resort the first column. In a normal situation, this column will now have many duplicates. To remove them...

6. Select the column, select Data - Filter - Advanced filter, and set Unique records only. This will filter the list in place. You may then copy & paste the result wherever you like.

7. Optional: If you prefer the different levels of the nested values to be separated into columns (i.e., rather than "Level1\Level2\..."), save the file as text, close and re-import it as text, this time setting the delimiter as "\". The Autofilter feature could then be used to filter the results. This would be an excellent way to present the list if it is very long.
Logged

DiiPii

  • Recent member
  • *
  • Posts: 28
Re: how to export field values as text
« Reply #9 on: March 10, 2009, 08:51:03 pm »

thanks for this thread........was just trying to do same thing (export view to text file) and came accross this.......File - Export Playlist  worked for me (thanks for taking the time to post Rick)
Logged
Pages: [1]   Go Up