Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Autosuggest not displaying the primary key when i concat.

Explorer ,
Nov 26, 2010 Nov 26, 2010

Autosuggest not displaying anything when i concat the primary Key with the contents of other columns. It will work fine when i not include the name.personID concat syntax. but whenever i include the name.personID syntax it does not autosuggest, the syntax is below. any ideas...

<cfquery name="FOILIST" datasource="master">
SELECT CONCAT(name.personID,' ',name.fname,' ',name.last,' ',name.nickname) AS workers
FROM name
ORDER BY name.fname
</cfquery>

<cfset list=valuelist(workerLIST.worker)>

<cfinput type="text" name="foiid" autosuggest="#list#" value="" size="32" />

472
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 26, 2010 Nov 26, 2010

I suggest that you start by looking at your query results.  Unless personId is a text field of some sort, your query might actually be crashing.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 28, 2010 Nov 28, 2010
LATEST

Shouldn't it be <cfset list=valuelist(FOILIST.workers)> ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources