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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLHow "force" a reload of the "XML-Source" from the DB?How "force" a reload of the "XML-Source" from the DB?
Previous
 
Next
New Post
9/8/2008 9:34 AM
 

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!


Greetings from Germany,
Stephan Schneider

 
New Post
9/9/2008 2:27 AM
 

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

 
New Post
9/9/2008 7:47 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.
 
New Post
9/10/2008 2:44 AM
 

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


Greetings from Germany,
Stephan Schneider

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLHow "force" a reload of the "XML-Source" from the DB?How "force" a reload of the "XML-Source" from the DB?


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