Register  Login  
  February 6, 2012  
Other Examples Minimize

ModulesSQLGridSelectViewExamplesInter-module Communication    

The following example shows how SQLGridSelectedView V5 uses the internodule communication capability of DotNetNuke. 

The first SQLGridSelectedView module prompts the user for a Module which sets two substitution parameters [PARM:ModuleDefID] and [PARM:FriendlyName].  Since this module is defined as a IMC Parent Module, the module will inform all other modules on the page of these substitution parameters.  To ensure these paramters do not interfere with paramters defined in the other SQLGridSelectedView modules, each paramter has a "Parent_" appended as a prefix.  So, [PARM:ModuleDefID]  becomes [Parent_PARM:ModuleDefID]

The second and third SQLGridSelectedView modules uses the paramter value passed in via IMC as part of the primary select statement. 


SQLGridSelectedView - Module 1 Minimize
Select ModuleID

Print  

SQLGridSelectedView - Module 2 Minimize

Primary Select used: select * from Modules where ModuleDefID = [Parent_Parm:ModuleDefID ]

ModuleIDModuleDefIDModuleTitleAllTabsIsDeletedInheritViewPermissionsHeaderFooterStartDateEndDatePortalID
956100View_Blog    11
403100View_Blog    2

Print  

SQLGridSelectedView - Module 3 Minimize
Primary Used: Select * from Modulecontrols where ModuleDefID = [Parent_Parm:ModuleDefID ]
ModuleControlIDModuleDefIDControlKeyControlTitleControlSrcIconFileControlTypeViewOrderHelpUrlSupportsPartialRendering
183100 View BlogDesktopModules/Blog/MainView.ascx 0  
187100Edit_BlogEdit BlogDesktopModules/Blog/EditBlog.ascx 1  
185100Edit_EntryEdit EntryDesktopModules/Blog/EditEntry.ascx 1  
186100Module_OptionsBlog OptionsDesktopModules/Blog/ModuleOptions.ascx 2  
184100View_EntryView EntryDesktopModules/Blog/ViewEntry.ascx 0  

Print  

  Home | Blog | Forum | Subscriptions | Free Modules | Videos   Page generated in 3.286626 seconds.
  Copyright 2010 by TressleWorks   Terms Of Use | Privacy Statement