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 ListNew Data TypeNew Data Type
Previous
 
Next
New Post
9/20/2006 12:02 AM
 
I am very interested in adding a new data type to UDT that would create a drop down list for the user to choose values based on vaues queried from a table created within UDT.

I have already installed DNN's source package. I downloaded the source for UDT 03.03.03.

I would appreciate some pointers:
1) How do I add the source file I downloaded to the DNN project. Can I just copy the files to the proper folder and add them to the solution?
2) I have seen that there are vb files for each data type to control the module's behavior for each data type but do not have the big picture on how to go about this, if I could get high-level steps to follow to accomplish this I would appreciate it.


Thanks in advance...
Benicio Sanchez

 
New Post
9/20/2006 1:56 AM
 

1) Install the source module at your dnn3.3.5 installation. You can not use DNN 4.x for development.

2) Steps during development

  • Copy DataTypes/String.vb to DataTypes/YourType.vb
  • Replace EditString with EditYourType, DataTypeString with DataTypeYourType.
  • DataTypeYourType.MappedFieldType must return YourString
  • Change the EditYourType class to work with your dropdownlist
  • Add a constructor call to  EditYourType at EditControls.Add
  • Add YourType to the enum Datatypes in DataTypes.vb
    Some lines down, add colDataTypes.Add("YourType", New DataTypeYourType)
  • Add values for YourType.Text and YourType.ErrorMessage to App_LocalResources/SharedResources.resx

Compile and have fun. Please share your experiences.

 
New Post
9/21/2006 10:49 AM
 
Stefan,

I have switched to DNN3.3.5, had installed 4 previously. I had gone through the code and understand the outline you provide. Thanks. I will surely post my experiences.

For now I am still stuck on installing the UDT's source package. Do I just copy it to my DNN installation folder under $DNN_HOME\DesktopModules\UserDefinedTable\ and add it to the solution on Visual Studio?

Can I use Visual Studio 2005?

I really appreciate your support. Hopefully something useful for more people will come out of this excercise.

Benicio
 
New Post
9/21/2006 11:16 AM
 

Bernicio,

  • you need VS 2003
  • to install source package, just upload it like the installation PA and all additional files get unpacked as well.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/12/2006 3:25 AM
 
I had not had a chance to do this until today.

I made the modifications, compiled, but have not been able to "see" the changes on the portal.

Here's what I did:
1) Opened the DNN solution
2) Added the UDT solution to the project
3) Made the changes
4) Compiled (no errors)
5) Created DNN_UserDefinedTable.zip file
6) Deleted the bin directory from the zip and renamed to .resources
7) Swapped this file with the one on the UDT Source Package
8) Installed new module on portal (no errors)

I still do not see the new type.

I must not be doing this the right way. After compiling, how do I go about installing/using the modified module?

Thanks
Benicio


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListNew Data TypeNew Data Type


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