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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Referencing UserID in a ModuleReferencing UserID in a Module
Previous
 
Next
New Post
7/15/2007 8:40 PM
 

We are building a module and want to filter a record based on who the logged in user is. We will be allowing the person setting up the module to select a DNN user that creates the relationship for later filtering.

So should we use the aspnet_users as the linked table to our detail table or the simple Users table?

Thanks.


Forerunner Communications, LLC
DotNetNuke Integration Specialists

 
New Post
7/15/2007 8:44 PM
 

You never want to access the database objects directly. Always use the DotNetNuke API. This tutorial:

Super-Fast Super-Easy Module (DAL+)

has examples for using the API to access the UserID



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
7/15/2007 9:50 PM
 

Maybe I should provide a little more detail. Here is what I was thinking. But right now, I am not with my developer, so he may have better ideas, along with many of you.

We need to assign a DNN user to have rights to update the information related to School Demographics. We will have lots of school records but we only want to have a single module loaded on a page where all registered users have access. But we only want the registered user to see their school record to update.

So I am using Universal List for our Admin to create the school record by just putting in a school name and assigning a DNN user.

With Universal List, I can create the Reference Field in the school table to hold the DNN User ID that will be assigned. When our Admin creates the School record using Universal List, it should populate the DNN User reference field combobox with all DNN users and allow the Admin to select that user.

Now when the logged in user accesses the custom module page to update the remainder of their school's data, I want our module to filter the school record to only show the one associated with the logged in user's DNN User ID.

I am sure that there are many approaches to this and I would surely like to hear all that may be applicable. Keep in mind that we want to allow the DNN user to access and update and save the data until all 144 fields are complete, which may take several sessions. Once the DNN user is complete, they will Submit the record, at which time it cannot be altered anymore. This is why we are building a custom module, to give us a little more flexibility on Saving and Submitting the data, rather than just allowing he DNN user to directly access the Universal List module to update their data.

Thanks.


Forerunner Communications, LLC
DotNetNuke Integration Specialists

 
New Post
7/16/2007 1:24 AM
 

this still works by using business layer. the sole point for a reference is how to react, if a user gets deleted. if you want to delete his data in your module as well, you need to create a delete trigger for the users table.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Referencing UserID in a ModuleReferencing UserID in a Module


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