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.0Get specific ModuleID from another ModuleGet specific ModuleID from another Module
Previous
 
Next
New Post
2/27/2007 9:30 PM
 

Hello !

I have a Television module that have two definitions: Television definition and ViewHot definition. So, when I install Television to DotNetNuke, it create two module A and B. But in module B, i need to know the ModuleID of module A. Help me !

Best regard !

 
New Post
2/28/2007 9:08 AM
 
vudinhthi wrote

I have a Television module that have two definitions: Television definition and ViewHot definition. So, when I install Television to DotNetNuke, it create two module A and B. But in module B, i need to know the ModuleID of module A. Help me !

The multiple definitions only works if the data is portal wide.  You can always determine what portal the person is in. If you need to segment the data by module instance then you want to use the MultiView control. See: Module Navigation Options for your DotNetNuke® Module



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/28/2007 1:07 PM
 

I'm not sure there is a correct or easy way to do what you want.  If what you want is module A to know what Module B's ID is.  Then you could set up intermodule communications and module A could just ask module B what it's module ID is.

mj 


Michael Jackson
Brillnat.com
Custom module development
Database access tokenized HTML modules
 
New Post
2/28/2007 1:11 PM
 

hello,
I have a similar issue. i wanted to get the module id of another module i created, but i was not able to i scanned through DNN 's stored procedure if i could see any. i didn't, so i wrote a custom one

CREATE  PROCEDURE dbo.LopeTech_BookShop_GetModuleIdByControlTitle

 @PortalId int,
 @FriendlyName nvarchar(128),
 @ControlTitle nvarchar(100)
 
AS
SELECT *
FROM vw_Modules
WHERE  ((PortalId = @PortalId) or (PortalId is null and @PortalID is null))
 AND FriendlyName = @FriendlyName AND ControlTitle = @ControlTitle
 AND IsDeleted = 0

-- end of procedure

' usage ---- in ur module ------------------------

 

dim mModuleInfo As DotNetNuke.Entities.Modules.ModuleInfo
cartModuleId as integer

mModuleInfo = Modules.BookShop.ShoppingController.CartController.GetModuleId(PortalId, "BookShop", "Shopping Cart")
         CartModuleId = mModuleInfo.ModuleID

Try it... its cool. don't forget to edit DAL & BLL and ur controller class to reflect ur GetModuleId function.

chipset Arowolo
 
New Post
2/28/2007 9:55 PM
 
Thank you Chipxoft !
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Get specific ModuleID from another ModuleGet specific ModuleID from 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