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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom User IdCustom User Id
Previous
 
Next
New Post
2/6/2012 3:13 AM
 

Hi,

I would like to be able to link DNN users with my company's employees. In order to do that, I would need a foreign key field i DNN's database Users table.

 Can I just create one? I I did, would I be able to edit that field through the default "Edit user account" form in DNN?

Otherwise, could I use the field named "AffiliateId" for that purpose, since I guess I don't need it for anything else?

Thanks is advance,

Daniel Carbonell

 
New Post
2/6/2012 3:51 AM
 

What I would like to do is allow users to view their presence control punches.

The punches are stored in the company's presence control DB, and they are related to a user in that DB identified by a ID.  I want to be able to query that table for the current DNN user, so I need to know somehow which ID in the company's DB correposponds to that DNN user.

Thank you,

Dani

 
New Post
2/6/2012 9:17 AM
 

I would advise against adding any columns to any of the core DotNetNuke tables such as the Users table. As for using the AffiliateId column (which is used by the Vendors/Banners feature), that might be a possibility if you never plan to make use of that feature. I would, however, want to look more closely at the database schema and the Vendors implementation to be certain that populating this column with your own data would not be a problem.

You could store the presence control Id as a custom property in the user's profile but if you intend to perform a join between the DNN users table and your own database table, that would make for a very messy join.

My preferred approach would be to create an additonal table say "UsersPunches" containing only two columns - UserID and PunchID - and use that in a one to one relationship for creating lookups or joins to your own data.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/8/2012 6:34 AM
 

Thanks, William,

I think that intermediate table is a great idea. I will go for that.

Just one more question, though, would you advise me to create it in the DotNetNuke database or in the presence control one? I guess it should be in the second one, otherwise I would need to issue a distributed query that links both of them, shouldn't it?

Thank you very much,

 Dani

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Custom User IdCustom User Id


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