<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Custom Modules</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Developing custom modules for DotNetNuke.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Custom module(s) using non-DNN database to generate dozens of reports?</title><link>http://forums.asp.net/thread/1150581.aspx</link><pubDate>Fri, 23 Dec 2005 16:37:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1150581</guid><dc:creator>chrissuttman</dc:creator><author>chrissuttman</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1150581.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1150581</wfw:commentRss><description>&lt;p&gt;That was interesting and helpful. Thanks!&lt;/p&gt;
&lt;p&gt;I just want to share something else I learned while looking into this...&lt;/p&gt;
&lt;p&gt;The generic data access class that is ised in the DNN template module is actually coming from "Microsoft Application Blocks for .NET". If you do any work outside of DNN, since DNN already uses it, you must check it out. I built my own general purpose class for getting integers, datareaders, datatables, etc. previously, but could have saved a lot of work by just using the classes in this. It is very inclusive. It also has an exception handler too.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Custom module(s) using non-DNN database to generate dozens of reports?</title><link>http://forums.asp.net/thread/1147515.aspx</link><pubDate>Tue, 20 Dec 2005 18:40:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1147515</guid><dc:creator>mcsenow</dc:creator><author>mcsenow</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1147515.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1147515</wfw:commentRss><description>&lt;p&gt;Suggest you visit this link &lt;a href="http://opensource.indyneinc.com/home/DevX/Articles/SingleSignOnforDotNetNuke3/tabid/99/Default.aspx"&gt;http://opensource.indyneinc.com/home/DevX/Articles/SingleSignOnforDotNetNuke3/tabid/99/Default.aspx&lt;/a&gt;&amp;nbsp;and review the option to use secondConnectionString.&amp;nbsp; This option allows you to acess DNN db and your own db using the same SQLProvider project.&lt;/p&gt;
&lt;p&gt;Should one have a&amp;nbsp;separate SQLDataprovider project?&amp;nbsp; There are code gen template (ex. codesmith template from &lt;a href="http://dnnjungle.vmasanas.net/"&gt;http://dnnjungle.vmasanas.net/&lt;/a&gt;) that will auto gen code&amp;nbsp;using the the data provider model.&amp;nbsp; Stick with the model will have less code to write.&lt;/p&gt;</description></item><item><title>Re: Custom module(s) using non-DNN database to generate dozens of reports?</title><link>http://forums.asp.net/thread/1147274.aspx</link><pubDate>Tue, 20 Dec 2005 15:30:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1147274</guid><dc:creator>chrissuttman</dc:creator><author>chrissuttman</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1147274.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1147274</wfw:commentRss><description>&lt;p&gt;Thanks for the input.&lt;/p&gt;
&lt;p&gt;I did some experimenting and I was able to access the other DB by just changing the connection string. I am currently expoloring the best place to put the DB access code. One thing that I'm considering is dropping the entire seperate SqlDataProvider provider project. As long as I'm only building custom modules for my own use and don't plan to package them for others, I don't see the point is doing what seems to be double work (putting functions in both DataProvider to be overwritten and SqlDataProvider) so I thought I'd simplify things and combine them into the main module project. &lt;/p&gt;
&lt;p&gt;Can&amp;nbsp;anyone&amp;nbsp;think of&amp;nbsp;any reason to not ditch the&amp;nbsp;SqlDataProvider project?&lt;/p&gt;
&lt;p&gt;I also don't see how the&amp;nbsp;parameters are assigned to the sProcs when using the base class data functions such as "SqlHelper.ExecuteReader". Do they&amp;nbsp;just need to be listed in the same order as they are in the sProc? &lt;/p&gt;
&lt;p&gt;If so, this seems kind of scary since it could be easy to mis-order parameters accidentally. Personally, I began writing all sql parameters to a hash table (field name / value)&amp;nbsp;from the BL&amp;nbsp;and have my own&amp;nbsp;DL that loops through&amp;nbsp;it and sends whatever parameters to the sProc by name. What methods of sending parameters do most people use?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Custom module(s) using non-DNN database to generate dozens of reports?</title><link>http://forums.asp.net/thread/1146868.aspx</link><pubDate>Tue, 20 Dec 2005 02:40:02 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1146868</guid><dc:creator>BKdotNet</dc:creator><author>BKdotNet</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1146868.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1146868</wfw:commentRss><description>&lt;p&gt;As far as accessing a separate db than DNN...&lt;/p&gt;
&lt;p&gt;Someone correct me if I'm wrong, but to the best of my understanding, DNN, through the methods provided by the module base class (and the sibling methods of the partial class for modules in asp.net 2.0 / dnn 4.x)&amp;nbsp; uses the DNN SQLDataProvider to access the DNN database.&lt;/p&gt;
&lt;p&gt;So the data provider you author for your module can access its own database with no problem at all.&lt;/p&gt;
&lt;p&gt;The module you right then can use the base methods for DNN to access DNN information through the DNN data provider while using your own data provider to access a completely separate database all together.&lt;/p&gt;
&lt;p&gt;One thing I personally have not investigated is whether or not I can ask for two separate data providers... but I can't see why it wouldn't be possible.&lt;/p&gt;
&lt;p&gt;Bill&lt;/p&gt;</description></item><item><title>Custom module(s) using non-DNN database to generate dozens of reports?</title><link>http://forums.asp.net/thread/1143039.aspx</link><pubDate>Thu, 15 Dec 2005 13:57:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1143039</guid><dc:creator>chrissuttman</dc:creator><author>chrissuttman</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1143039.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1143039</wfw:commentRss><description>I have an existing database that has GB's of data in it that I need to build web reports from, but still want everything managed &amp;amp; accessed&amp;nbsp;within DNN. I have 2 questions about the best way&amp;nbsp;I should go about this... 1) How can I reference another DB from a custom module and still use the available DNN DB info too? Can I use the same data access class for this or should I make a new one? Example: I want my module to send the current DNN user id to my other DB so it knows to get only that user's&amp;nbsp;info. I&amp;nbsp;plan on keeping a user conversion table in the other DB to make this practical.&amp;nbsp;Examples or detailed instructions would be very helpful as I'm new to custom module building. 2) I will be making dozens of reports that all have very different parameter options but the output is all Crystal Reports reports (which can be called with just a parameter list and name of report), so I need to know if it would&amp;nbsp;make more sense to encapsulate the data access and report call in separate dll's and keep all the different parameter controls&amp;nbsp;in a 3rd module and call each control dynamically somehow as opposed to making complete separate modules for each report? So.. if I put all the controls in one module, any thoughts on how to call each one dynamically?</description></item></channel></rss>