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.0Get Users by DisplaynameGet Users by Displayname
Previous
 
Next
New Post
1/11/2007 11:41 PM
 

In a module being written for DNN 4.3.7 and later I need to be able to lookup user contact information by Displayname (or Fullname or even Firstname + ' ' + Lastname)  but find that the UserController class has no GetUsersbyDisplayname or GetUsersbyFullname method. Since Displayname is not a defined PropertyName, neither can I use the new UserController.GetUsersbyProfileProperty method. Although there are many ways around this: custom query on the Users table, use GetUsersbyProfileProperty to retrieve those matching the Lastname then enumerate the resulting UserInfo objects for matching Firstname, etc., I'm wondering if this is a common need that should be addressed in future versions. I also noticed that search by Displayname is one of the few not available on the Admin/User Accounts page. Since the Users table does not have an index defined on the Displayname column, queries on this column would be less efficient in a site with many users.

Am I overlooking a pre-defined method for this lookup or have others found it lacking as well?


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
1/12/2007 9:20 AM
 
In my opinion the display name should be stored with all the profile information and the Admin should have the option whether or not to use it. I really don’t see the benefit of a display name vs the User Name and I think it’s confusing for users. That said, if you want to search for users based on display name you’ll need a custom stored procedure to do it. Or you could add a profile property called Display Name and synchronize it with the value in the Users table. You’d still have to add some custom functionality, but that way you could access the display name anywhere profile properties are used, e.g. the search.

I would suspect DisplayName to be part of the DNN user search though.

Brian

Qualtiy DotNetNuke modules and custom development; we've been serving the DNN community for over 2 years and have hundreds of satisfied customers. Let us serve you today.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Get Users by DisplaynameGet Users by Displayname


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