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...Building ExtensionsBuilding ExtensionsModulesModulesHow to communicate between two modules?How to communicate between two modules?
Previous
 
Next
New Post
10/15/2018 4:39 AM
 
Dear Dnn Guru,

I developed two modules from Christoc module develop template. I called them Module1 and Module2 here. I finished module1, its working well. Now I want to develop Module2. I would like using the data which stored in SQL Database by Module1 within Module2. So I import the namespace which built by Module1 and using the components and classes built in the Module1 namespace into my Module2. There is no error alert after I corrected any syntax problems. There is also no error alert after I compile the Module2 codes in Visual Studio 2017. I then install the Module2 into Dnn platform page and running the Module2. The page showed that the web controls are on the page but the data are not displayed in the controls. I check the Event View, there is no error info. So that I think if there is a logical problem prohibited displaying within the two modules communication, or other problems. In order to test if the Module2 can read the data stored by Module1, I copy the Module1 page web controls and backside page load codes and pasted into Module2, As said above I import the Module1 namespace(That means the codes in Module2 are same as Module1). I don't understand why Module2 is not working. Please help!

Best Regards

Jimmy
 
New Post
10/15/2018 8:35 PM
 
Are you getting the SQL data based on moduleID?
When you install module2 it will assign a different moduleID to the module.
 
New Post
10/15/2018 9:53 PM
Accepted Answer 
Dear Tomoyo

Thank you very much. I neglected the ModuleId. Its working now!

Best Regards

Jimmy
 
New Post
10/15/2018 9:53 PM
 
Dear Tomoyo

Thank you very much. I neglected the ModuleId. Its working now!

Best Regards

Jimmy
 
New Post
10/16/2018 1:59 AM
 
Jimmy,

the better solution(s) could be:

1) Using the ModuleID of an instance of Module1 when querying data in Module2. You could store the module ID in the settings of Module2.

2) Using Inter-Module-Communication (IMC) - see http://dotnet-tech-guide.blogspot.com... (or google for that term)

3) Implement a web service that delivers the data from Module1 and is called by Module2. With that technique, Module2 could also be placed on a completeley different web site.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to communicate between two modules?How to communicate between two modules?


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