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.0Modules inside modules (kind of a dynamic module)Modules inside modules (kind of a dynamic module)
Previous
 
Next
New Post
7/6/2007 3:37 AM
 

My current project has some wierd requirements - basically i have an object and it needs to be associated with a set of user controls like a module to provide a function (data entry and reporting).  Now i could create a module for each dataentry and reporting function and thats not the problem the issue is they are linked to the object dynamically and i am not sure how to handle it

 

let me explain it

I have a policy - this is the object - the policy needs to have two types of things collected for it - in this case areas to inspect (need to be able to add, delete, update and see areas entered) , inspections performed (abble to add delete update and see inspections)

So how do i have a module that shows the policy and then can load dynamically the controls to do either of these functions without the user controls being defined as a module?  I was thinking maybe i need to have a module that could call my table of controls and duplicate the whole module idea that DNN uses

I really need some ideas here and probly didnt explain this very well so throw out your ideas and questions so I can figure this out

THANKS


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
7/6/2007 3:53 PM
 

famdylan,

Not sure if this'll help but...

Depending on how you want it to work:

1.  The controls dynamically load on the same form.  -For this you can use the dynamic forms discussed in your last post.

2. Load each control on their own page.  -For this you can simply set them up as module controls and navigate to them based on their control key.

Steve

 
New Post
7/6/2007 4:04 PM
 

Steve - yeah that helps i am sort of on that path in a way - my real problem is one of management of the "controls" they really arent modules and i dont want to cluter up the module definitions table with them i kind of need to build my own secondary module system of some sort - i think

not sure how feasable this whole thing is


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
7/6/2007 4:49 PM
 

 

 I've done something where all my modules have the same "Edit" control setup in the module definition and an extra parameter in the URL tells the "Edit" control which control to actually load.  I did this (I think) for similar reasons - I didn't want to edit the module definition everytime I needed a new control.

In the "Edit" controls Page_Init I have code like:

*******************************

 

 If Not DotNetNuke.Security.PortalSecurity.IsInRole("SettingsAdmin_P") Then
 Response.Redirect(DotNetNuke.Common.AccessDeniedURL("You are not authorized to application settings."), True)
 Exit Sub
End If

 
Dim objModuleSettingsBase As MyApp.Modules.Settings.Base = Me.LoadControl("~/DesktopModules/MyApp/Modules/Settings/" & Key & ".ascx")
objModuleSettingsBase.ModuleConfiguration = Me.ModuleConfiguration
celSettingsControl.Controls.Add(objModuleSettingsBase)


*******************************

MyApp.Modules.Settings.Base inherits from DotNetNuke.Entities.Modules.PortalModuleBase and DNN takes care of loading the Moduleconfiguration.

celSettingsControl (td id="celSettingsControl" runat="server") is the only control in the "Edit" control ascx file.

Steve

 

 

 
New Post
7/6/2007 5:34 PM
 

Yeah thats about the same set up i was moving towards - i have a few other issues to work on with other variables I need to have setup but i think this is where i am going - now i need to get some prototype controls built and the tables and ...........

 

Thanks


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Modules inside modules (kind of a dynamic module)Modules inside modules (kind of a dynamic 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