R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Need a feature for Auto-Suggest
Last Post 12 Jul 2006 04:06 AM by jepper. 3 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
nutriCandeeUser is Offline
New Member
New Member
Posts:2

--
22 May 2008 12:59 AM  
<img src='desktopmodules/ntforums/images/emoticons/unsure.gif' height='20' width='20' border='0' title='Unsure' align='absmiddle'> Hi! I'm looking for a way to make this function offer suggestions even when the entry does not match the first word in the phrase but matches the second or subsequent word.

For example, if my customer types in "Henry," our auto-suggest currently offers Henry Altman, Henry Boyd, Henry Cruise. HOWEVER, we also want it to offer other names like John Henry, Mary Grace Henry, etc.. Can this be done?

Will really appreciate any help/suggestion anyone can offer. Thanks!
wlevyUser is Offline
New Member
New Member
Posts:66

--
27 May 2008 01:57 PM  
If you're using a SQL statement such as

SELECT SuggestedName FROM tblAllNames WHERE SuggestedName LIKE '@InputName%'

you could change it to ... LIKE '%@InputName%'

The leading percent sign turns this into a "CONTAINS" lookup.
nutriCandeeUser is Offline
New Member
New Member
Posts:2

--
30 May 2008 12:58 AM  
Thank you so much! Will try it and hope it works.
pmandaUser is Offline
Basic Member
Basic Member
Posts:268

--
30 May 2008 02:29 PM  
Let us know if that worked for you.
Praveena Manda<br>Software Engineer<br>Bi4ce,Inc
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share