I'm creating my first DNN Module/Set of Modules, and have a question which is probably a no-brainer, but I can't seem to find an snswer for it. Perhaps I'm not searching correctly, but I'm still a bit ignorant regarding DNN (although I love it already!!!). I am a VB/SQL developer with a background in T-SQL and VB 6.0 and earlier... I'm an old man ;)
Ok, So I'm creating a new Module called Sandbox... and it will have (initially) two modules packaged into it. They appear in the way that the two feedback module appear. When you add Sandbox, you get two modules placed on the screen... One (SandboxEntry) for the general user community to add items into the Sandbox.... and one (SandboxView) for displayby the general user community, and for maintenance by admins.
Within SandboxView, the admin can supply two setting values which will be used to control the appearence/editting of entries within the Sandbox, on both SandboxEntry and SandboxView.
One Setting is named AllowSubjects. It is stored (by SandboxViewSettings.vb) in the TabModuleSettings table, and that part, as well as the retrival of the value from SandboxViewSettings.vb, is functional.
However, when I go into SandboxView.vb, and try to retrieve the value, so that I may make the Subject textbox visible or not... I can't seem to get the value back. First of all, the same retrieval code which is used in the ViewSandboxSettings.vb code won't work in ViewSandbox.vb. This, I guess, is because they inherit different base classes. But I also tried to instantiate the object which I thought I needed... but I'm not getting any value back... just an empty string. Here is that code:
Dim x As New DotNetNuke.Entities.Modules.ModuleSettingsBase
x.LoadSettings()
txtSubject.Visible = CType(x.TabModuleSettings("AllowSubjects"), Boolean)
OK, as I said, I'm a newbie, both in DNN and in Dot.Net.... So please go easy if I sound like a moron, ok? ;)
Thank you so much for any suggestions :)
-Clay Beatty