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...Database triggers that fire on a given user role changeDatabase triggers that fire on a given user role change
Previous
 
Next
New Post
5/25/2013 5:41 PM
 

I'm considering options for populating a linking table that will be needed to relate management personnel to the users they hire.

Edit: 25 May

I did find this link and the logic of it is sound: http://www.dotnetnuke.com/Resources/Forums/forumid/108/threadid/313898/scope/posts.aspx but this being said, a trigger in this case seems such a simple solution.  Is there no way around using them?

End of edit

Due to the volume of users managers will have, the owners of the site could not possibly be tied to creating users but will create the Manager's user accounts who will then create the users.

So as not to extend the User Accounts, which would be overkill, it was thought an option was to create a trigger that would fire when a user had the Manager role added to their profile.  I thought "Aha! ... there must be a database trigger used in DNN already.  All I need do is just read over existing code and glom the one that is close to the functionality I am thinking of."  Nein!  There are no database triggers in the Triggers folder under Programmability.

Is the idea of adding a trigger to do this bad practice?  I would think a database the size/complexity of DNN should have at least one trigger.  Seeing none, I question the wisdom of my approach.

If anyone has used a trigger before, if there's a head's up I need to know I'd appreciate it.  I'm going to pursue this approach as it would not be overwritten by DNN updates and would be far simpler than adding a user layer.

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Database triggers that fire on a given user role changeDatabase triggers that fire on a given user role change


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