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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedModuleId or UserIdModuleId or UserId
Previous
 
Next
New Post
6/27/2010 10:05 AM
 

Hi, 

I'm new in DotNetNuke. I'm creating the module for example easy: ToDoList. What  should I use ModuleId or UserId for insert and select data ? The data should be bind with user by  ModuleId or UserId. What is main conception  in DotNetNuke?

Cheers,

ol3j

 
New Post
6/27/2010 12:05 PM
 
You will definitely need UserID and also an ItemID (for multiple To Do's belonging to the same user) in your ToDoList table. You should also include either a ModuleID or PortalID column as explained below:

1) If you plan to have multiple ToDoList modules with different item data for each module you will need to add a ModuleID column to the table with a foreign relationship and cascade delete going back to the core Modules table. This will confine data to the particular module instance and allow the core API to delete the ToDoList table data when a particular module is deleted and removed from the recycle bin.

2) On the other hand, if the same ToDoList data is to be shared across all ToDoList modules in the portal you should add a PortalID column with a foreign key relationship back to the core Portals table. This will confine data to the portal on which the module(s) are installed and cause deletion of the ToDoList table data when a particular portal is deleted.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
6/27/2010 12:33 PM
 
Thank you for quick and clear reply. It's exactly what I wanted hear. Regards, ol3j
 
New Post
6/28/2010 4:03 AM
 
If you want to show aggregate list of the portal then you have to use PortalId and if you want to show list module wise then use ModuleId

Regards 

Leo TechnoSoft Pvt.Ltd - The Biggest DotNetNuke Development Team
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedModuleId or UserIdModuleId or UserId


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