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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to Add the Item in differnt Module ?How to Add the Item in differnt Module ?
Previous
 
Next
New Post
9/25/2007 3:56 AM
 

Hi All,

I have a typical requirement.

I have got two completely different modules, let say 1. Orders 2. Customers

In my orders Module, I would like to let the User select the Customer (whose order he has received) via a DropDownBox. I am populating the DropDownBox from the Customer's Table (which is basically the main table of Customers Module)

Now, I would like to provide the facility to the User to Add/Update the Customer Data, right from my Order's Module, without re-creating all the EditForms. I would like to invoke the EditCustomer.ascx of Customers Module from, within the Order's Module (may be from EditOrder.ascx file)

How do I do that ? (I dont know, where the User would have installed the Customer's Module, neither I would have known the TabId or ModuleId of the Customer's Module's Instance). So how do I find the TabId, ModuleId etc of the Customer's Module ?

Thanks in Advance

 

 
New Post
9/25/2007 5:32 AM
 

I normally have a drop-down list of tabs in the module options so the admin can configure the editor page (i.e. in your case, I would have a drop-down list in the options page for the orders module, which allows admins to set which tab has the customer module on it)


 
New Post
9/25/2007 7:28 AM
 

Right,

However, I need to populate only those Tabs in TabDropDown, which are relavnt as well as the ModuleDropDown

Further, I need to set the right default values too

How do I do that ? What are the DotNetNuke Classes (viz Modules, ModuleDefinitions, TabModules, Tabs etc) are involved ? Which Namespaces are conecerned ?

Is there any reliable and/or shortcut methods are there in Dnn Core ? (I hope there are some :P)

(I guess, I can do that by running a Query, but I wish to do it through the Dnn Core API if any :P)

 
New Post
9/25/2007 9:52 AM
 

I don't think there is a built in core method for returning only tabs with a specific module on it. You can retrieve the ModuleDefID via the DesktopModules table (via SQL) by looking for the module name you need (Friendly name perhaps, haven't looked at the table today) and then you can take that ModuleDefID and select the tabs available via tab modules. You will need the ModuleID most likely returned as well as the TabID, and probably the names so it makes sense to the end user.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
9/25/2007 11:06 AM
 

Right,

Infact, I have already wrote (and tested OK) a Stored Procedure that returns the TabId, ModuleId ; when you pass the FriendlyName, which Involves Modules, ModuleDefinations, Tabs, TabModules Tables. However, I am worried, what if the TableName/FieldName are changed in the future versions of DNN ? That is why, I was wondering, if it is possible to do so with DNN objects.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to Add the Item in differnt Module ?How to Add the Item in differnt 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