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 ListExport XML ProgramaticallyExport XML Programatically
Previous
 
Next
New Post
12/11/2008 3:12 PM
 

Hello There,

I am kind of new to DNN and need some help with the UDT contribution.

I am using DNN with UDT module installed and succesfully created several tables.
however, i am also trying to automate some processes by calling the export method of a certain table programatiicaly from another page within DNN.

I was wondering how this is possible.
I am developing with VS2008.

thank you in advance,

Koby O.

 
New Post
12/12/2008 3:21 AM
 

I suggest not using the export function, instead catch the data directly:

Dim ds as System.Data.DataSet
Dim udt as New DotNetNuke.Modules.UserDefinedTable.UserDefinedTableController()
ds = udt.GetDataSet(ModuleID)

You can query the XML by ds.getXml()

 
New Post
12/12/2008 11:40 AM
 

Yap, that seem like the type of code that i needed.

can you also let me know what would be the best method for importing data to a UDT programatically?

thank you very much for the help.

Koby O.

 
New Post
12/13/2008 3:19 PM
 

Check out the source of the UserDefinedTable module and look at UserDefinedTableController.Import

That code is going to be obsolete, this was subject of change for form and List.

form and List is going to have a new Sub
UserDefinedTableController.UpdateRow(ByVal ds As DataSet, ByVal RowNr As Integer, ByVal IsDataToImport As Boolean)
which will help you a lot better.

 
New Post
12/15/2008 12:10 PM
 

Stefan Cullmann wrote

I suggest not using the export function, instead catch the data directly:

Dim ds as System.Data.DataSet
Dim udt as New DotNetNuke.Modules.UserDefinedTable.UserDefinedTableController()
ds = udt.GetDataSet(ModuleID)

You can query the XML by ds.getXml()

Stefan,

in reference to this reply i was trying to code this as mentioned, but when asigning the ds=udt.GetDataSet(ModuleID) command i get a "Object reference not set to an instance of an object." error. the module ID i refer to is 368 which is suppose to be the correct one.

any ideas why is it hapening?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListExport XML ProgramaticallyExport XML Programatically


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