Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT Import/ExportUDT Import/Export
Previous
 
Next
New Post
7/17/2006 6:24 AM
 

Hi,

I have an 'old' website in DNN3 and a new website in DNN4. I'm copying content from the DNN3-site to the DNN4-site. In the DNN3-site I have a UDT with 50 rows and 12 columns. I managed to get this content in Excel (there is no export). Now I try to import this in the new DNN4 UDT (3.3.0), but I don't know how this is done. I tried to export the excel-table to xml and uploaded the xml-file in the portal root folder, but this file does not appear in the drop-down list at the importscreen. I chose 'import content' from the module menu. Can anyone help me?

Jan-Geert Taekema.

 
New Post
7/17/2006 7:18 AM
 

I would waiting for the next DNN release, afterwards you would upgrade your whole site.

If you don't want to upgrade your site (perhaps because of an general clean-up), you will upgrade a copy of your old site to DNN3.3.x/UDT3.3.x which will allow the export of UDT data into a XML file.

taeki wrote

I tried to export the excel-table to xml and uploaded the xml-file in the portal root folder, but this file does not appear in the drop-down list at the importscreen.

The File needs to be renamed content.UserDefinedTable.YourName.xml. Please not that you will not be able to import a normal Excel Xml file, it has to fullfill a special schema.

 
New Post
7/17/2006 10:48 AM
 

Thanks very much for your quick help, the last part was very helpful. In the DNN3 version of my site, I'm not authorized to upload any modules, so I had to choose a different approach. Here's my solution, though quite complicated.

  • In the DNN4-version I filled one row, exported this en downloaded the xml-file from the portal root (as admin) content.UserDefinedTable.MINE.xml, where MINE is the title of the module.
  • I copied the <data> ... </data> part of this file (opened in notepad) and pasted this in Word.
  • From the old site I copied from screen (selected all rows as it was presented when I viewed the page) to Excel, did some cleaning and saved it with a named region.
  • I used the Word document as the basefile and merged it with the excel-region as though I was making multiple letters. I replaced all data which I entered in the first row with fields from the excel-region. This needs a bit tuning, but can be done!
  • I saved the merged as a txt-file and opened it in notepad.
  • I copied the first rows (just before the first <Data>-tag from the original xml-file, which was still open in notepad and pasted it into the new txt-file.
  • I copied all rows right after the </Data> (that is: starting with <Fields>) from the original file and pasted them into the new file.
  • I saved the new file, deleted the original file and renamed the new file to the original name, ending with .xml.
  • I uploaded the file to the portal root (as admin)
  • I imported this file in the new DNN4 UDT and it works!!!

To be honest: I made one mistake and had to ask my provider to delete all datarows from the SQL-database, but that could be done!

Then there still remains the question if it is possible to create a 'import csv-file' function. CSV-files are much easier for most people. The first row should contain the column-names. Maybe one step beyond this: Display field names in UDT and display behind each fieldname a listbox of fields found in the csv-file, so there is an easy way of matching fields.

Hope you can use all this information!

Jan-Geert Taekema.

 
New Post
7/17/2006 11:14 AM
 

Jan-Geert,

thank you for your tutorial. CSV import is on our roadmap (but not in first row, unfortunately).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT Import/ExportUDT Import/Export


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out