Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Field "contains" failure to show all users that match
Last Post 10-26-2009 07:51 AM by Robb Bryn. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Robb BrynUser is Offline
going with the flow
going with the flow
Posts:74
Avatar

--
10-22-2009 11:18 AM

    We are tracking down a problem where users register with Dynamic Registration and check a series of values in a group checkbox (which is stored in the DNN Profile table as "value, value, value") 

    When I do a search based on the values using the "contains" it never shows the correct number of results.  This problem appear to be limited to that feld search.

    Doing a SQL profile trace I get the following commands

    exec dbo.DataSprings_RetrieveDNNUserProfileData3 @PortalID=0,@RoleFilter=N' Where UserID In (Select UserID from dbo.UserRoles Where (ExpiryDate >= GetDate() OR ExpiryDate Is Null) AND (EffectiveDate <= GetDate() OR EffectiveDate Is Null) AND RoleID  IN (4,3,5 ))',@LimitResults=N' TOP 1000',@Authonly=0

    which returns 769 records.  based on that recordset the filter for "Field contains value X" should then filter down to about 30 records .  It's returning 2.

    Apparently this filtering is done inside the module based on the total records returned from the above stored proc.  Is there anyway to see what is *actualy* being filtered so we can determine the real problem?

    Robb BrynUser is Offline
    going with the flow
    going with the flow
    Posts:74
    Avatar

    --
    10-22-2009 11:25 AM
    forgot to add.... with debug on it does show the correct "filter" and it shows the correct results when I apply that filter to the original Stored Proc result set... the problem is within the module.

    [BusinessCategories] like '%Builders (Residential & Commercial)%'
    and run....

    SELECT U.Username, U.FirstName, U.LastName, UserRoles.ExpiryDate, UserProfile.PropertyValue, UserProfile.PropertyText, PropertyDefinitionID
    from dbo.[Users] U
    INNER JOIN UserProfile ON U.UserID = UserProfile.UserID
    INNER JOIN
    UserRoles ON U.UserID = UserRoles.UserID
    Inner Join dbo.[aspnet_users] as au on au.Username = U.UserName
    Inner Join dbo.[aspnet_membership] am on au.UserID = am.UserID
    Where propertydefinitionid = 47 and PropertyValue like '%Builders (Residential & Commercial)%' and UserRoles.Expirydate >= getdate()
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    10-23-2009 07:51 AM
    HI, what version of DUD are you running? We are working on a new DUD version with numerous enhancements and faster search capabilities. -- David
    Robb BrynUser is Offline
    going with the flow
    going with the flow
    Posts:74
    Avatar

    --
    10-26-2009 05:33 AM
    2.50.22 is the release that we are running.
    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    10-26-2009 07:40 AM
    Hi, how many users do you have in your DNN website? I noticed that your query is TOP 1000. Can you change this to 0? That way, there's no filtering. The problem is that in the version of DUD you are using, a TOP 1000 will mean it returns the first 1000 rows and then does the query to search based on those 1000 rows. Hence, some will be missing from the query. Our next release that we're working on, the query has been changed so that the it runs the query first and then filters on the rows returned by the query. -- David
    Robb BrynUser is Offline
    going with the flow
    going with the flow
    Posts:74
    Avatar

    --
    10-26-2009 07:51 AM
    Gotcha... that fixed the problem.
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
     
     
       
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi