Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  How "force" a reload of the "XML-Source" from the DB?
Previous Previous
 
Next Next
New Post 9/8/2008 7:34 AM
User is offline Stephan Schneider
25 posts
www.scheider-it.eu
10th Ranked


How "force" a reload of the "XML-Source" from the DB? 

Hi,

I created a little Module to set the XML_XmlSourceUrl in the Database for Module Instances, which can be choosen from a CheckBoxList. This works fine, but the XML Module only uses this "new" Values if I clear the cache of the Portal manually. Setting the Cache in Module-Settings to 0 does not "help".

Maybe anybody has an idea / solution how i can "force" the XML Module to reload this setting when it is changed or a page with an instance of the Module is loaded. Thank you for any help!


Stephan Schneider
Schneider-IT



partner of:
member of the:
 
New Post 9/9/2008 12:27 AM
User is offline martinweber
2 posts
10th Ranked


Re: How "force" a reload of the "XML-Source" from the DB? 

I tried something similar, but also without success. Maybe someone here has an idea how this can solved.

 
New Post 9/9/2008 5:47 AM
User is offline Stefan Cullmann
1553 posts
5th Ranked








Re: How "force" a reload of the "XML-Source" from the DB? 
Modified By Stefan Cullmann  on 9/9/2008 11:41:51 AM)

I think I know what happens:

  1. URL of XML source as like all other settings are handled as ModuleSettings.
  2. ModuleSettings is part of the DNN API, and, as result, it need to be treated as black box.
  3. The only supported way to set a value inside ModuleController is:

    Dim mc as New DotNetNuke.Entities.Modules.ModuleController
    mc.UpdateModuleSetting(ModuleId, NameOfSetting, ValueOfSetting)
  4. To retrieve a value, the API offers the following interface:

    Dim mc As New DotNetNuke.Entities.Modules.ModuleController
    Dim Settings As Hashtable = mc.GetModuleSettings(ModuleId)
    Return Settings(NameOfSetting)


    or, more simple inside a module

    value = me.Settings(NameOfSetting)
     
  5. It doesn't matter how Settings are handled inside the black box. Things might change, everything behind is private.
  6. There is a table ModuleSettings inside the DB. It is part of the DNN installation, but AS ANY OTHER Table, View or StoredProcedure inside that doesn't belong to YOUR module, it is not part of the API.
  7. DNN itself caches the ModuleSettings reducing the number of database calls until one of the values gets updated.

Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
Form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to Form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
New Post 9/10/2008 12:44 AM
User is offline Stephan Schneider
25 posts
www.scheider-it.eu
10th Ranked


Re: How "force" a reload of the "XML-Source" from the DB? 

This was the "hint" I needed. With a little "Mod" of the XML Module everything works fine. Thank you!


Stephan Schneider
Schneider-IT



partner of:
member of the:
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  How "force" a reload of the "XML-Source" from the DB?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace
ExactTarget Email Marketing Software and Solutions
ExactTarget delivers on-demand email software solutions for permission-based email marketing. ExactTarget offers solutions that meet the needs of all industry verticals and all size organizations, including SMB, corporate divisions, not-for-profits, large retail/direct marketers, agencies and enterprises.
ExactTarget.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP