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 ListAdding new data types: A working exampleAdding new data types: A working example
Previous
 
Next
New Post
7/25/2009 4:07 PM
 

Did you know?

You can add new data types to form and List without changing code of the module.

This blog shows how to add a new data type "Attachment".
 
New Post
7/27/2009 1:04 AM
 

re-downloaded ang reinstalled module. looks fine.

but why cant i find forms and list module under the module list? where do i start?

 

 

 
New Post
7/31/2009 2:19 PM
 

Hi Stefan,

I followed your blog, to the letter, and when I try to add the Attachment Data Type, I get the following Error when adding columns to an existing form and List Configuration:

Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: key ---> System.ArgumentNullException: Value cannot be null. Parameter name: key at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value) at DotNetNuke.Modules.UserDefinedTable.DataType.get_UserDefinedDataTypes() at ASP.desktopmodules_userdefinedtable_configuration_ascx.__DataBinding__control28(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.ListControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, DataGridColumn[] columns, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.BaseDataList.DataBind() at DotNetNuke.Modules.UserDefinedTable.Configuration.BindFields(Boolean blnInsertField) at DotNetNuke.Modules.UserDefinedTable.Configuration.cmdAddField_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

Any adivce on this? I am using DNN 5.1.1 with F&L 5.02...

OK, this is wierd. If I retry after I get the error above, I get past the error. However, the new attachment type is not listed.

Thanks, again!

Tom

 
New Post
7/31/2009 3:57 PM
 

Tom I missed one important step, please add

 <data name="Attachment.Text" xml:space="preserve">
    <value>Attachment</value>
  </data>

to DesktopModules/UserDefinedTable/app_localresources/sharedresources.resx

 
New Post
7/31/2009 4:54 PM
 

Hi Stefan,

Thanks for the quick response, that fix did the trick! I was able to upload a file successfully. But, and there is always a but, when attempting to view the uploaded file, I get a 404 error:

Thanks for your efforts!!

Tom

 Server Error in '/' Application.


The resource cannot be found.

 

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /DesktopModules/UserDefinedTable/Attachment.ashx

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListAdding new data types: A working exampleAdding new data types: A working example


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