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 ForumsReportsReportsModuleSettings V. TabModuleSettingsModuleSettings V. TabModuleSettings
Previous
 
Next
New Post
10/5/2006 12:58 AM
 

I have noticed in the reports module that the settings for each individual instance of the module are stored in two seperate places.  The settings such as Title, Description and Query (Data Source Settings) are stored in the ModuleSettings table yet the pagination, header and sorting settings (Display Settings) are stored in the TabModuleSettings table.

In developing my own module should I be using one or the other as I have had a look around and couldn't seem to answer my question?

Cheers, Pete

 
New Post
10/5/2006 9:14 AM
 
They are both designed for slightly different purposes. ModuleSettings are unique to a particular ModuleID, that is when you place a new Reports module on the page (aka tab), it has a unique ModuleID and its own ModuleSettings. However, you can also place a copy of an existing Reports module from one page (aka tab) onto another page. This copy has the same ModuleID and shares its ModuleSettings with the other copy, but has a unique TabModuleID and its own TabModuleSettings. So basically, the idea is that the Data Source Settings are common to all copies of the same Reports Module, whereas the Display Settings can be different for each copy.

When developing your own module, you need to evaluate at which level the settings should go. My general rule of thumb is: If the setting has no effect on data access or manipulation and is purely a UI setting, it should probably be a TabModuleSetting, but if it must be shared among all copies of the same Module instance (for example, it affects the data retrieved/stored) then it should be a ModuleSetting.

Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
10/17/2006 8:34 PM
 
Excellent reply. Thank you.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsModuleSettings V. TabModuleSettingsModuleSettings V. TabModuleSettings


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