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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Need Module to talk to another ModuleNeed Module to talk to another Module
Previous
 
Next
New Post
4/18/2008 1:44 PM
 

I have worn out the search engine trying to find an answer to this question  and I think i have seen it here before, alas the search  feature seems to be a little week given the amount of content we have here. So...

I have a module with a Treeview that pulls data when a Leaf is selected and it needs to tell another module on the page to fill the information based on the selection(yes we have consider making one big module and may still do it, but the treeview module has many functions we want to reuse). How do i pass information between the modules so i can populate the desired data?

 
New Post
4/18/2008 2:02 PM
 

Hi Avworkz,

You're likely going to wind up using inter-module communication to accomplish this task.  IMC allows a module to raise an event that can be consumed by other modules on the same page.  Look at the IModuleCommunicator and IModuleListener interfaces in the DotNetNuke.Entities.Modules.Communications namespace, and google "dotnetnuke imc" for some concrete examples.

Hope this points you in the right direction!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
4/18/2008 3:58 PM
 

avworkz wrote

(yes we have consider making one big module and may still do it, but the treeview module has many functions we want to reuse).

I'm only giving my $0.02 cents here because I have seen this question so much over the years.

If you want to reuse the TreeView perhaps you can include it as a reusable .ascx control on the page?

I always encourage developer's to make "small modules" and leverage the DotNetNuke framework, however, there are times where 2 pieces are functionality are really one.

For example the tree view and the resulting click comprise one functional thing. One would be useless without the other. In this case trying to make a separate module out of each part can cause needless complexity.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
4/25/2008 9:23 AM
 

Thanks for these wise words. We have done just this with total success and no stress.
Thank You!

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Need Module to talk to another ModuleNeed Module to talk to another Module


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