Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  User Defined Ta...  UDT Import/Export
Previous Previous
 
Next Next
New Post 7/17/2006 4:24 AM
User is offline taeki
9 posts
10th Ranked


UDT Import/Export 

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 5:18 AM
User is offline Stefan Cullmann
1551 posts
5th Ranked








Re: UDT Import/Export 

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.


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
New Post 7/17/2006 8:48 AM
User is offline taeki
9 posts
10th Ranked


Re: UDT Import/Export 

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 9:14 AM
User is offline Sebastian Leupold
15045 posts
www.deutschnetnuke.de
1st Ranked












Re: UDT Import/Export 

Jan-Geert,

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


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  User Defined Ta...  UDT Import/Export
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au
Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com
Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP