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 ExtensionsModulesModulesMultiple instances of same module on pageMultiple instances of same module on page
Previous
 
Next
New Post
5/2/2013 8:49 AM
 

Hello and thank you in advance for your help,

I have a requirement to make a module which queries the same database table on a single DNN page.  We will need the ability to add several instances of this module on the same page with different permission for users to see this module.

The module which I am making is a download module which has a Rad grid as the core element in the module.

I am storing the module ID in each record which is added to the module.

I am querying the database, and using where module id = module id.

But the query seems to be pulling duplicate records back - even though when I just use a select all statement in MS SQL server on the database table, the records are fine.  The module id is correct and different for each module I put on page.  But I just dont understand why my stored procedure is pulling back multiple records(actually duplicates of the same record).

Please help I am really stuck here.

And thank you again for your help.

 
New Post
5/2/2013 9:01 AM
 
I think the magic column you need is ModuleInstance (to disambiguate multiple modules on the same page)

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
5/2/2013 9:16 AM
 

Where and how is that stored on the DNN database?

 
New Post
5/2/2013 9:35 AM
 
Oops. I think I have that name wrong, it's TabModuleId. Looks like in your module you should be able to write ModuleContext.TabModuleId

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
5/3/2013 5:59 AM
 
Hi,

You are facing this problem because ModuleDd is unique to the module, but not the instance of that module on a specific page. According to your current requirement you would need to use TabModuleID from the TaModules table and you can filter according to TabModuleId.

Thanks,
Avinash Kumar
Mindfire Solutions
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMultiple instances of same module on pageMultiple instances of same module on page


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.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out