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.0IMC (Inter Module Communication)IMC (Inter Module Communication)
Previous
 
Next
New Post
3/7/2007 2:03 PM
 

Hello,

after more than 2 futile hours of seaching the web and the dotnetnuke site on an example of IMC, i decided to post a request to anyone who has dealt with it to shed some light how it works. That subject is totally neglected by any books/blogs or documentation on the web.

 
New Post
3/8/2007 12:16 PM
 

The DNN mod dev guide gives a basic explaination, but not how to implement it.  To test it create two modules - Isend and Ireceive.  Isend doesn't need any controls.  Ireceive needs a label.  Here's the codebehind:

Public Class Isend
    Inherits DotNetNuke.Entities.Modules.PortalModuleBase
    Implements DotNetNuke.Entities.Modules.Communications.IModuleCommunicator
 
    Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim args As New DotNetNuke.Entities.Modules.Communications.ModuleCommunicationEventArgs
        args.Sender = "Isend"
        args.Target = "Ireceive"
        args.Type = "Action"
        args.Text = "LoadMessage"
        args.Value = "Message loaded through IMC"
        RaiseEvent ModuleCommunication(Me, args)
    End Sub
 
    Public Event ModuleCommunication(ByVal sender As Object, ByVal e As DotNetNuke.Entities.Modules.Communications.ModuleCommunicationEventArgs) Implements DotNetNuke.Entities.Modules.Communications.IModuleCommunicator.ModuleCommunication
End Class
 
 
Public Class Ireceive
    Inherits DotNetNuke.Entities.Modules.PortalModuleBase
    Implements DotNetNuke.Entities.Modules.Communications.IModuleListener
 
    Protected WithEvents lblMsg As System.Web.UI.WebControls.Label
 
    Public Sub OnModuleCommunication(ByVal s As Object, ByVal e As DotNetNuke.Entities.Modules.Communications.ModuleCommunicationEventArgs) Implements DotNetNuke.Entities.Modules.Communications.IModuleListener.OnModuleCommunication
        If e.Sender = "Isend" AndAlso e.Target = "Ireceive" Then
            Select Case e.Type
                Case "Action"
                    Select Case e.Text
                        Case "LoadMessage"
                            Me.lblMsg.Text = e.Value.ToString
                    End Select
                Case "log" ' or whatever
 
            End Select
        End If
    End Sub
End Class
This code is not tested, but should be close to getting you started.
 
New Post
3/8/2007 6:57 PM
 
I highly recommend Professional DotNetNuke 4.  It covers everything you'll need to get rolling with IMC on page 282.  It's also covered in the module developers guide v 1.0.12 on page 53 (PDF page 57).

Look up the interfaces iModuleCommunicator and iModuleListener.  DNN's IMC allows for very straight foward passing of objects between modules.

heres a link

Good luck.
 
New Post
3/8/2007 7:51 PM
 
The Module Developers Guide included in the Docs from each version in the download area and the Dotnetnuke Books from Wrox have info about it.

Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
3/8/2007 10:44 PM
 
Hi there,

I have a free sample with source in my free downloads section. You can find it here, http://www.dnnstuff.com/Download/tabid/298/view/topic/postid/848/forumid/20/Default.aspx


Richard Edwards
www.dnnstuff.com
Quality DotNetNuke Modules, Unrivaled Support (since 2004)
All 6 modules for as low as $49
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IMC (Inter Module Communication)IMC (Inter Module Communication)


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