Register   Login
     
  Latest Posts  
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
Google Maps
by bmurphy on 11/22/2008 11:11 PM
RE: News Articles 301 Redirect
by swebster on 11/22/2008 10:47 PM
  Forums  
Subject: Integrating DNN to Existing DB...How?
Prev Next
You are not authorized to post a reply.

Author Messages
Paul DeschenesUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:6

4/29/2005 4:31 PM  

I have an existing SQL database, running say a Sales application with tables of Employees, Companies, Contacts, Orders and Activities. As you might imagine Contacts has a Company foreign key in it and Activities has Company and Contacts and Orders has all of the other 3.


So, now I want to "portalize" it so it may be accessed from the web. Maybe by the salesman to log their activity or maybe by the customer to see the activity in their orders.


I install DNN into the existing SQL database(making sure there are no possible duplicate names first). OK, now where can I go to read about how to extend DNN with existing modules that can be modified or resources that would explain how to write something to allow this multi-relational table scheme to be leveraged in the DNN application? Seems everything I can find out there is single table oriented. TP Modules never link to other tables, configurable lists are never linked table based, the DNN user/security tables never seem to integrate into available modules(obviously I'd want to integrate to control visibility of records by those logging in).


I'm new, see potential with DNN, just don't know where to go with it from here.


Thanks,


Paul

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


4/29/2005 6:20 PM  
 I have an existing SQL database, running say a Sales application with tables of Employees, Companies, Contacts, Orders and Activities. As you might imagine Contacts has a Company foreign key in it and Activities has Company and Contacts and Orders has all of the other 3.

Best way is to specify an objectQualifier for your dotnetnuke install. These prefix's your table with the objectqualified, e.g. DNN_


 OK, now where can I go to read about how to extend DNN with existing modules that can be modified or resources that would explain how to write something to allow this multi-relational table scheme to be leveraged in the DNN application?

Each module is a little application in itself, it has access to all the other tables in the database, so I would just join on tot hose tables when your writing your code to retrieve details.


Obviously this only works when you are using a single portal, as your other data is not disected by portal like the other tables.


 Seems everything I can find out there is single table oriented. TP Modules never link to other tables, configurable lists are never linked table based

Yes, this is for good reason, decoupling. Most modules may go into environments where those tables might not exist.


The configurable lists, are just away to cut down on the number of tables required, and by there nature are not linked in the normal sense of, CategoryID, CountryID etc, but rather ListID, EntryID.


 the DNN user/security tables never seem to integrate into available modules(obviously I'd want to integrate to control visibility of records by those logging in).

Normally you control this in code, by role checks. So dependant on what role they are in the portal, depends on what record they see. This is not normally done for DotNetNuke in the database, as a single account is used to access the database.


I hope this helps..


Scott McCulloch
Site Administrator
Paul DeschenesUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:6

4/30/2005 4:40 AM  

OK, a quick followup.....


Obviously this only works when you are using a single portal, as your other data is not disected by portal like the other tables.
So if my orders table had orders for each customer, could I filter it by their company record that their user id for the portal was linked to, so that the customer could only see their orders?
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


4/30/2005 8:19 AM  
yep - as long as there is a way to relate userid to a customer

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Integrating DNN to Existing DB...How?



ActiveForums 3.7