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...DNN Platform (o...DNN Platform (o...Problem with InterModule Communication in DNNProblem with InterModule Communication in DNN
Previous
 
Next
New Post
11/25/2008 7:00 AM
 

Dear Friends,

I have developed two modules in DNN "UserManual", "ShowUserManual"

"UserManual" Module will display just the title of a manual. On clicking the title, the content of the manual i am passing it to "ShowUserManual" Module and i have added this module in a separate page.

so i wish the "UserModule" viewUserManual.ascx control to communicate with viewShowUserManual.ascx control. I decided to go for "Inter Module Communication" concept.

The problem i face with it is the IListener.ModuleCommunication is not getting called at all. I have included the code of the two controls below.

Any good urls, that hosts example of Intermodulecommunication in DNN is appreciated.

Kindly help me in resolving this issue.

All replies are appreciated,

regards,

deepak

ViewUserManual.ascx

Imports DotNetNuke
Imports System.Web.UI
Imports System.Collections.Generic
Imports System.Reflection
Imports Prodigy.Modules.Notifications
Imports DotNetNuke.Entities.Modules.Communications

Namespace Prodigy.Modules.UserManual


Partial Class ViewUserManual
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
Implements IModuleCommunicator


Private strTemplate As String

Public Event ModuleCommunication(ByVal sender As Object, ByVal e As ModuleCommunicationEventArgs) Implements IModuleCommunicator.ModuleCommunication

Protected Sub LinkButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Dim MCArgs As New ModuleCommunicationEventArgs()
MCArgs.Sender = "UserManual"
MCArgs.Target = "ShowUserManual"
MCArgs.Text = "deepak"
MCArgs.Value = "deepak"
RaiseEvent ModuleCommunication(Me, MCArgs)


End Sub

End Class

End Namespace

ViewShowUserManual.ascx

Partial Class ViewShowUserManual
Inherits Entities.Modules.PortalModuleBase

Implements Entities.Modules.IActionable, IModuleListener


Public Sub OnModuleCommunication(ByVal s As Object, ByVal e As DotNetNuke.Entities.Modules.Communications.ModuleCommunicationEventArgs) Implements DotNetNuke.Entities.Modules.Communications.IModuleListener.OnModuleCommunication

I have inserted break point at this point but it not getting called at all


If e.Sender = "UserManual" Then
Dim imcValue As String = DirectCast(e.Value, String)
End If
End Sub



End Class

End Namespace

 

 

 
New Post
11/25/2008 9:23 AM
 

You mentioned that you added the second module (ShowUserManual) in a separate page. Please note that IMC may only be used to communicate between modules located on the same page/tab. IMC is not appropriate nor necessary in this situation.

As the data passed to the second module is only a string, I would recommend passing the selected title string to ShowUserManual as a query string parameter (building your URL using NavigateUrl function) when you redirect to ShowUserManual.

For more complex data, you could pass it through a custom database table or the DataCache. You may also and to reevaluate whether or not you need two separate modules or using one module to both display the list of user manuals and show a particular user manual would work just as well.


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
11/26/2008 4:57 AM
 

Thanks william for your guidance,

I sorted out the issue with NavigateUrl()

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Problem with InterModule Communication in DNNProblem with InterModule Communication in DNN


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