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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SqlGridSelectedView questionsSqlGridSelectedView questions
Previous
 
Next
New Post
3/30/2007 12:11 AM
 

sirs, just an addition, the solution might seem to work with tables inside the DNN database. I have another database with all the stuff i need. the user-id/roles are in the DNN database.

My portal works like this:

Employee gets in the main portal, clicks on my portal, and SAP throws an encrypted string of the info of the employee. Once I decrypt it, then will I get the unique employee number. As much as possible, there SHOULDN'T be any registering in dotnetnuke (so no userID then for dotnetnuke) and again, I'll be using the employee number or whatever credential from that string, to query another database using the module sqlgridselectedview that I eventually asked about dynamically changing its query statement.

so sirs, will this be possible? or is it really necessary that I put the tables of my existing database into DNN database so I can use this solution, provided I also need employees to register and login to the portal? so the main questions are:

1. how do I handle the dynamic querying by passing info I decrypted, without using a userId from DNN?

2. If this is not possible, then should I put my database in DNN database AND have employees register still (that is not quite acceptable in the business requirement specified)

sorry for bugging too much, I'm in a hurry reading this and that implementing this and that and not seeing what I need. So please enlighten me once again sirs. Sir paul I know your busy but I hope you could find a few minutes. thanks so much!

 
New Post
3/30/2007 9:49 AM
 

hapidose,

You need to link the external user to the DNN User somehow.  For example, you can create new profile property to define the external userid.  You will need to populate this field for each user on the DNN site. Alternatively, you could use a unique value such as email.  Eitherway you need to have one valid link that maps to DNN User.

Once you have that you can then get the specific value from the userprofile with a SQL clause like:

Select PropertyValue from UserProfile
where Userid = [DNN:UserID]
      and PropertyDefinitionID = (Select PropertyDefinitionID
                                    from ProfilePropertyDefinition
                                    where PropertyName = 'CustID'
                                    and PortalID = [DNN:PortalID]
                                 )

 The othe issue is referencing the external table from DNN. This is a issue for the database, not specifically DNN.  If the external table is located within the same instance of SQL Server, then you can reference the database by adding the name to the table reference (assuming you have permission to do so)   like  otherdb.owner.table  If the database is on another server and this server is defined as a "Linked Server", the you can reference the table as otherserver.otherdb.owner.table

Hope this helps.
Paul.

 
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...SqlGridSelectedView questionsSqlGridSelectedView questions


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