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 ListMultiple Values for a Row and ColumnMultiple Values for a Row and Column
Previous
 
Next
New Post
8/17/2006 6:28 PM
 

Hi

I have been reviewing the features, the underlying relational tables, and the logical structure of the User Defined Table module. I am using DNN V4.3.4 and SQL Server 2005. I have a question about how to handle multiple values for a given row and column.

Here is an example: Members of an organization have name, telephone number, and certification columns. They can have multiple certifications. Normally you would have a separate certification table with a foreign key linking it to the member table. I can think of a number of ways to handle this using the UDT all of which violate normal form rules. I would like to maintain 3rd normal form “behind the scenes” in the database at least on a conceptual basis. However, given the database structure for UDTs this doesn’t appear that easy to do. Perhaps my table requirements are beyond the design objectives of the standard DNN UDT. Should I be looking at SQLGridSelectedView or Advanced DataGrid from Efficion? I have seen those recommended for other requirements that don’t exactly fit the UDT module approach.

Also if I want to import data from an external data source using the import feature I assume I’ll have to output the XML document from my other data source and write the SQL to do that. I have exported an example XML document from a sample UDT that I created and was going to use that as a model to format my output. Is that the best approach or is there a better way?

Thanks,

GM

 
New Post
8/17/2006 6:47 PM
 

GM,

The name UserDefinedTable states the purpose of this module: to allow users to create a table of date with typed columns (the last is a basic difference between UDT and an Excel worksheet). If you need multiple values in a field, you can enter them as a single string, but you will loose the ability to select or sort by this value. The main advantage of this approach is simplicity in developement and usage.

If you need additional options, you need other tools. you can create and fill an additional table in your database with a common database tool and use SQLGridSelectedView or Advanced DataGrid to display the data contained. You can use 3rd party modules, that support hierachical data - you might do a search at www.snowcovered.com. There will be soon a module from gamma concept, that allows easy creation of hierarchical data, you can see a preview at http://test.modulio.net/Default.aspx?tabid=229 and test it, using the login credentials at the bottom of the page.

To import data, currently the XML approach will be the most promising, but you can also try to fill the database directly, although you need to fill two tables, UserDefinedRows and UserDefinedData (assuming you already created the empty table using the UI), needing to serialize the data in advance.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/18/2006 9:40 AM
 

Hi GM,

I am working on a CSV Import, first bits are working. As its state is pre alpha don't expect it in short term.

Your described way will work, in fact the CSV Import will work nearly the same, it will be internally converted to XML and imported to UDT.

One warning: you MUST set up one column with data type CreatedBy, and it is highly recommend to add the ChangedBy/At/CreatedAt columns too.

 
New Post
8/18/2006 12:47 PM
 

Thanks guys for the input. Its is very helpful. I think I will continue to use the standard UDT for the simple display and import/export cases but check out the various commercial options for more complex situations.

GM

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListMultiple Values for a Row and ColumnMultiple Values for a Row and Column


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