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...GetUsersBasicSearchGetUsersBasicSearch
Previous
 
Next
New Post
3/17/2017 8:03 AM
 

​Hi,

I'm a newby, so be nice to me ;-)

I've inherited a DNN Intranet website.

We use the Member Directory Module, but the search doesn't perform as I would expect.

If I set the filters & Sorting to NO filter, and I search for people from ICT, I only see 2 employees instead of 6.

The database fires this query: Exec dbo.GetUsersBasicSearch  0, 99, 0, N'LastName', 1, N'DisplayName', N'ict'

The two people it fi

nds have ICT in their displayname.

I altered the Stored Procedure GetUsersBasicSearch ​ so it also looks at functions and departments, but I wonder if that's a good idea, what happens when we get an upgrade, do I need to re-implement my changes to the Stored Procedure?

 
New Post
3/17/2017 2:31 PM
 
Which "User Directory Module" are you using?

And which version of DNN?

If the stored procedure that you modified is part of the User Directory Module, you'd only have an upgrade issue if/when you update that module.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
3/18/2017 10:32 AM
 
Joseph, Membership Directory module is part of the DNN Distribution (maybe not the best one, though).

Marianne, GetUsersBasicSearch is able to search for a text in a single column only - in your case "Displayname" (the forth parameter "LastName" is used for sorting).
GetUsersAdvancedSearch supports search for a text in multiple columns and it depends a) on the module configuration, which procedure will be used and b) on the DNN version, whether the stored procedure returns proper records (as this stored procedure has been modified nearly every DNN version since 7.1).
Note that Membership module checks for permission and passes ViewingUserID when calling GetUsersAdvancedSearch - but using a wrong version (See https://dnntracker.atlassian.net/brow...). You'll find a list of all known issues with Membership module at https://dnntracker.atlassian.net/brow....

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/18/2017 10:35 AM
 

PS: it might be worth considering to use Reports Module for displaying users, where you may call GetUsersAdvancedSearch explicitly (you'll need a separate module to input the search string and pass it as QueryString parameter to be used inside Reports).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...GetUsersBasicSearchGetUsersBasicSearch


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