Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Modules and ICM
Previous Previous
 
Next Next
New Post 8/11/2006 8:30 AM
User is offline peebee
5 posts
10th Ranked


Modules and ICM 
despite Google and the search I cannot resolve my problem with ICM.

I have two modules and I want some communication between the two. I have used the demo code I have found of the ImcExampleInCS.

The problem is ModuleCommunication does not get filled, and therefore no communication is done.

Anyone suggestions ???

Thanx
Patrick
 
New Post 8/14/2006 7:46 AM
User is offline peebee
5 posts
10th Ranked


Re: Modules and ICM 

Huray, got it working. But I am still not quite happy about it. Let me share the sollution and hope someone comes up with a better one.

My first module on the page is a grid displaying my records. When I click on a record and the setting of the module is to use a form, it broadcasts the action using the ModuleCommunication event, which in effect triggers the second module, my form, to display the record.

The main problem I was facing is the following code:

if (ModuleCommunication != null)
   ModuleCommunication(
this, oArgs);

If there is a subscription on the event, it fires the event. Great, but ModuleCommunication was null, and so the event never fired (just fire it, leads to an error :) )

The solution was the order of modules (to damn simple, to try the first time :D:D:D) When I place my grid first in the center pane and the form beneath it on the center pane, the ModuleCommunication event is not subscribed by the form in the PostBack. It first executes the grid and handles it events, then it renders the form and handles its events.

When I first place the form control, it is rendered, handles the events and registers to the ModuleCommunication Event. The second control, the grid, is rendered, handles the event, namely fires up the ModuleCommunication event. Because the first control is registered to the event, it executes the event handler.

 

So, wrapping it up: The order of modules is essential in handling the ModuleCommunication event. Sad but true (to qoute one of my favorite bands). First use the receiver module on the page, after that you can use the sender module. Perhaps something could be thought if for a next release. For instance, first render all modules and let them register to the event and only fire the event after that event.

greetz,

Patrick Baanvinger

 
New Post 8/14/2006 8:34 AM
User is offline peebee
5 posts
10th Ranked


Re: Modules and ICM 

Things are getting stranger with every net thingy found. Now it appears only to be working when I am an authenticated user. In retrospect Order part is not the problem, it only appeared because I was authenticating to change the order. In other words, the communication does not seem te work when I am not authenticated.

This poses a new problem, not for the edit (used guest just because I did not want to login after every compile), for another control. Any suggestions anyone :D

 
New Post 8/24/2006 12:34 PM
User is offline Rahim Hirani
1 posts
www.catalystic.co.uk
10th Ranked


Re: Modules and ICM 
I experienced the same issue but I have managed to resolve it. The problem for me was the fact that I was declaring the ModuleCommunicationEventHandler at the bottom of the class. Therefore, the eventhandler was not registered before the if(ModuleCommunication != null) code. So I moved the eventhandler declaraion code to the top of the class and it that solved the problem
 
New Post 8/29/2006 6:01 AM
User is offline COOLProfs
4 posts
www.coolprofs.com
10th Ranked


Re: Modules and ICM 
This, unfortunaly, did not resolve my problem:( Beside that, the order of declaring should not be a problem at all, given the structure of C#. Guess you were lucky
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Modules and ICM
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP