Bound autosuggest only displays selective results?

I've been stumped by this issue and hope someone here can point me in the right direction:
I have a autosuggest field that is bound to a component. When I call the component directly, it works as intended... when I try and use the component through the binding, it doesn't give me the same results.
Here's the autosuggest code:
<cfform name="teamsform">
Search for a team: <br>
Use team name, team id or any part of a team member's name.<br>
<cfinput autosuggest="cfc:/ofcomponents.teams.getteams({cfautosuggestvalue})" autosuggestminlength="2" type="text" name="userSearchTerm" size="50" typeahead="yes"><br>
<input type="submit" value="Go">
</cfform>
Here's the CFC:
<cfcomponent>
    <cffunction name="getTeams" access="remote" returntype="string">
            <cfargument name="usersearchterm" required="yes" type="string">
                <cfquery name="getTeams" datasource="#REQUEST.dsn#">
                SELECT t.team_name as name
                FROM of_users u left outer join of_teams t on u.of_user_id = t.user_id
                WHERE 0 = 0
                <cfif arguments.usersearchterm neq "">
                and (t.team_name like '%#arguments.usersearchterm#%'
                or t.team_id like  '%#arguments.usersearchterm#%')
                </cfif>
                and u.user_type_id in (select user_type_id from of_user_types where user_type_description = 'team')
                UNION
                SELECT t.team_name as name
                FROM of_users u, of_teams t, of_team_participants tp
                WHERE u.of_user_id = tp.participant_id and t.of_team_id = tp.team_id
                <cfif arguments.usersearchterm neq "">
                and u.first_name like  '%#arguments.usersearchterm#%'
                or u.last_name like  '%#arguments.usersearchterm#%'
                </cfif>
                and u.user_type_id = (select user_type_id from of_user_types where user_type_description = 'participant')
                </cfquery>
                   <!---  <cfdump var="#getteams#">
                    <cfabort> --->
<cfset returnlist = valuelist(getTeams.name)>
    <cfreturn returnlist>
</cffunction>
</cfcomponent>
As mentioned, when I call the component directly, like this:
<cfinvoke component="/ofComponents.teams" method="getTeams" returnvariable="varret">
   <cfinvokeargument name="usersearchterm" value="Logan">
   </cfinvoke>
   <cfdump var="#varret#">
It gives me the correct results (i.e. the Team name)
When I type the same term in the text field, I get no results. When I type in a team name, I only get a result when the team name starts with the search term I am typing. Any other search returns no results.
Can anyone see if I am doing something wrong or is there something else going on that I am not aware of?
Thanks!

When I type the same term in the text field, I get no results. When I type in a team name, I only get a result when the team name starts with the search term I am typing. Any other search returns no results.
That's pretty much what I expect to happen with autosuggest. You've set autosuggestminlength to 2, so Coldfusion will respond only after you type the second character. It will then show you  elements from the list -- if there are any -- whose first 2 characters match what you typed. If you want instant matching you should set autosuggestminlength to 1.

Similar Messages

  • Google Advanced Search only displays 10 Results per page in Firefox 3.6.10

    In Google Advanced Search, choose any value for Results per page greater than 10 and do a search. When using Firefox 3.6.10, only 10 results are displayed on each page of results. 10 results per page is the Google default, and the Results per page selection apparently has no effect.
    This problem also happens in Google Chrome 6.0.472.63.
    The Results per page feature of Google Advanced Search is working properly in other browsers, such as Safari 4.1.2 on a PowerPC Mac and IE 7.0.5730.13 and IE 6.0.2900.5512.xpsp3_gdr.100427-1636 on a PC running Windows XP

    Google recently made some changes to the Google search site with the addition of Instant search and that made the setting of the number of results in the Google settings to stop working.<br />
    <br />
    If Instant search is enabled on the [http://www.google.com/preferences?hl=en Google Search settings] page (link at the top right) then you only get 10 results.<br />
    You have to disable instant search and reload the result page and then set the number of results to your preferred choice.<br />
    It may not work if you make both changes at the same time.<br />
    <br />
    There is a link directly to the right of the Google search field on the Google results page.<br />
    That is a button with a drop down list: Instant is On/Off.<br />

  • Dynamic Drop Down  & displaying selected results

    Hello!
    I have been following the DDT image gallery tutorial - and it has been great! But, now I am stuck... What I have done is created an image gallery that displays all my Orchid Flower images. However, now I would like to add a drop down list to the photo gallery where the user can select:
    to view orchid by color (data base driven)
    view orchid by season(data base driven)
    Could someone please point me to a tutorial that I can follow to set this up? Or can you post the code that I would need in order to get this to work?
    Thank you!

    Hi Cathy,
    please back up your current page and replace the following line:
    $query_getimages = "SELECT * FROM image_img";
    with this code block:
    if (empty($_POST['color']) && empty($_POST['season'])) {
    $query_getimages = "SELECT * FROM image_img";
    else {
    if (empty($_POST['color']) && !empty($_POST['season'])) {
    $query_getimages = "SELECT * FROM image_img WHERE season = '".$_POST['season']."'";
    if (!empty($_POST['color']) && empty($_POST['season'])) {
    $query_getimages = "SELECT * FROM image_img WHERE color_id = ".$_POST['color_id']."";
    if (!empty($_POST['color']) && !empty($_POST['season'])) {
    $query_getimages = "SELECT * FROM image_img WHERE season = '".$_POST['season']."' AND color_id = ".$_POST['color_id']."";
    That should work -- does it ??
    Please note that such a manual modification of a Dreamweaver recordset might have a drawback :: DW will no longer display it in the Server Behaviours tab later on, and if you would try to add additional e.g. "Dynamic Text" instances based on this recordset, DW will also refuse to do that, as it can´t recognize it any longer. That said, such modifications should always be applied when a page can be considered "feature complete"
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Google images shows 2,400,000 image results but only displays 3,000- NOT a preference issue- why/how to fix

    When accessing image searches, such as "typographic resume" I get an insanely large result such as 2,470,000 images. However, after about 3,000 results they stop showing without a notification that similar results have been removed. I have my preferences set as high as they go- it is not an issue. How can I adjust/fix this to show ALL results as I approach them, or the option to load more.
    Thanks in advance!

    Hello twdockery,
    Thanks for contacting Mozilla Support. I think what Chandan_Baba was trying to say is our browser only displays the results that Google gives us. There are no settings in the browser that would limit the amount of search results that you can see.
    I would recommend posting your question to google's support. They have a page [https://support.google.com/websearch/troubleshooter/3425345?&ref_topic=3285072#ts=3502652 here] to report issues with Image searches.
    Cheers,
    Patrick

  • Search button not displaying search results

    I have created a page where you enter a string and click a search button and it will display the file that contains that string. It works on one page but not any of the other pages I have created. I went to dkubiceck page and copied the code for the search button there.
    This is the code I used to run the query to bring up the document information:
    select score(1) relevance, filename,transcript_id,
    dbms_lob.getlength("trans_document") "trans_document"
    from transcript_documents
    where contains (trans_document, :P20_SEARCH, 1) > 0
    order by 1 desc
    I can run the script in sql workshop and it returns information but I can't get the page to display anything so I think it has something to do with the search button. Does it have something to do with the button request. I have the request as go which is what the Oracle Text for APEX tutorial indicates. I am at a loss as to why it is working in one place and not in another. HELP!!!!!!!

    I used the Using Oracle Application Express to Build
    Oracle Text Web Applications An Oracle White Paper documentation to create this button. The instructions to create the button is below.
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
    To create a button to submit the search:
    1. Under Buttons, click the create icon ().
    2. For Region, select Search Terms(s).
    3. For Task, select Create a button displayed among this region’s items.
    4. For Button Name, enter P1_FIND.
    5. For Label, enter Find.
    6. For Button Style, select HTML Button.
    Run your page using the run page icon () and your development username and password. Your page should look similar to the following figure.
    This was the instructions to create the query region:
    To create a query region:
    1. Navigate back to the Page Definition for the Search page. You can do this by using the edit links at the bottom of the running page, Edit Page 1.
    2. Under Regions, click the create icon ().
    3. For Region Type, select Report.
    4. For Report Implementation, select SQL Report.
    5. For Title, enter Results.
    Using Oracle Application Express to Build Oracle Text Web Applications Page 9
    6. Enter the following SQL query:
    select score(1) relevance, doc_title, doc_url
    from htmldb_documentation
    where CONTAINS (doc_url, :P1_SEARCH, 1) > 0
    order by 1 desc
    7. For Display Conditions, for Condition Type, select Value of Item in Expression 1 is NOT NULL.
    8. For Expression 1, enter P1_SEARCH.
    This condition specifies to only display the Results region if a term is entered as a search criterion.
    Run the page and enter a search criterion for Term(s). Your results should look similar to the following figure.
    Figure 2.0
    The only thing I added to the query above is a dbms_doc.getlength statement to be able to open a link to the document.
    The first 2 times I created this on a page it worked just fine. But now no matter what conputer or schema or application I create this button in it won't display the results. I can admit that I have no experience creating a button with a different request than what comes up in the wizard. And the documentation that I found on creating buttons was of no help.
    I have not made any changes to anything in the wizard so can someone guide me as to how to create a button that will allow me to search a document using Oracle Text as described above

  • Autosuggest with bind to cfc only displaying every 2nd character

    This seems a bit strange. As I enter text (even slowly) the autosuggest only seems to display after every 2nd character entered.
    You can view the problem at http://karaoke.com.au in the search fields. It occurs in all 3 search entry fields (Disc, Title and Artist) In addition, as you remove characters, the autosuggset doesn't always update either?
    Any autosuggestions anyone?

    Hey Adam,
    Thanks for taking the time to take a look. I'm a bit surprised that you are getting the correct result there? I tested in IE8 and FF3 as well.
    As you type in a title, say, "To all the girls I've loved before" as you type the "T" I'm expecting the autosuggest to start suggesting my top 20 of titles beginning with "T" but, what I see is the little ajax loading spinner and then nothing until after I type in the next 2 characters when all of a sudden, I get the autosuggest. Having got the autosuggest displayed once, when I start deleting characters, I tend to get the expected behaviour as I go back one character at a time. Please note that no matter how slow I go, I still get these symptoms???
    Anyway here's my code for the form:
    <div class="search_element">
        <label for="disc">Disc</label><br />
        <cfinput style="width:60px;height:16px;" name="disc" value="#request.search.songs.disc#" autosuggest="cfc:karaoke.com.auto_suggest.find_disc({cfautosuggestvalue})" autosuggestminlength="1" maxresultsdisplayed="20">
      </div>
      <div class="search_element">
        <label for="disc">Title</label><br />
        <cfinput style="width:130px;height:16px;" name="title" value="#request.search.songs.title#" autosuggest="cfc:karaoke.com.auto_suggest.find_title({cfautosuggestvalue})" autosuggestminlength="1" maxresultsdisplayed="20"></cfinput>
      </div>
      <div class="search_element">
        <label for="disc">Artist</label><br />
        <cfinput style="width:130px;height:16px;" name="artist" value="#request.search.songs.artist#" autosuggest="cfc:karaoke.com.auto_suggest.find_artist({cfautosuggestvalue})" autosuggestminlength="1" maxresultsdisplayed="20"></cfinput>
      </div>
    And here's the CFC:
    <cfcomponent output="true">
            <cffunction name="find_disc" access="remote" returntype="string">
              <cfargument name="search" type="any" required="false" default="">
              <!--- Query discs --->
              <cfquery name="results" datasource="#dsn#" maxrows="20" >
                 select   distinct     discs.disc
                  from        discs
                  where        disc like '#arguments.search#%'
                  order by    disc
              </cfquery>
             <!--- And return it as a List --->
              <cfreturn  valueList(results.disc) >
          </cffunction>
            <cffunction name="find_title" access="remote" returntype="string">
                <cfargument name="search" type="any" required="false" default="">
              <!--- Query discs --->
              <cfquery name="results" datasource="#dsn#" maxrows="20" >
                 select   distinct     discs.title
                  from        discs
                  where        title like '#arguments.search#%'
                  order by    title
              </cfquery>
             <!--- And return it as a List --->
              <cfreturn  valueList(results.title) >
          </cffunction>
            <!--- Lookup used for auto suggest --->
            <cffunction name="find_artist" access="remote" returntype="string">
              <cfargument name="search" type="any" required="false" default="">
              <!--- Query discs --->
              <cfquery name="results" datasource="#dsn#" maxrows="20" >
                 select   distinct     discs.artist
                  from        discs
                  where       artist like '#arguments.search#%'
                  order by    artist
              </cfquery>
             <!--- And return it as a List --->
              <cfreturn  valueList(results.artist) >
          </cffunction>
       </cfcomponent>

  • Is it possible to display only dynamically selected fields in the out put?

    Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
    thanks in advance.

    Hi Remya,
    Are you talking about dynamic programming in ABAP ?
    If yes, there are concepts like RTTS which facilitates it.
    Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
    Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
    Regards,
    Philip.

  • Getting a "Displaying only the newest results below. To view all results, narrow your query by adding a filter" message in error

    I have a list with almost 10000 items. I have a view that should be returning 8 items. For me, the Farm Admin, I see the full set of expected values. The message "Displaying only the newest results below. To view all results, narrow your query by
    adding a filter" shows for other users. This makes no sense -
    there ARE filters on this view. I'd rather not increase the throttle limit.
    Anthony Kelly

    Hi Ajk,
    Check that the list is not scoped by an audience; but, I'm afraid that either way admin, (e.g. non Farm admin or site collection admin)
    I'd recommend exporting to excel, create two new spreadsheets and then import as custom lists.
    Best of luck and cheers,
    Stacy Anothersharepointblog.blogspot.com

  • I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages.  If I type it won't

    I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages.  If I type it won't continue in Hebrew.  I have tried downloading several fonts, including those from professional societies, but the only way to get Hebrew in my document is to cut and paste.  Does anyone know how to fix this?  I use an older MacBook running OS 10.9.1.  I used to do my Hebrew work in Word, but it is no longer supported by Mac OS.

    Just clarifying:
    Pages '09 has bad support for Hebrew, Arabic etc but will accept pasted text.
    Pages 5 has much better support but with bugs.
    If you have columns they are in the wrong order ie Text starts in the left column and ends in the right column.
    If you type English into Hebrew text it tends to fall in the wrong position eg instead of to the left of Hebrew punctuation it goes to the right.
    As Tom recommends the only real solution on the Mac is Mellel.
    Peter
    btw Tell Apple, they are amazingly slow to fix this running sore which has been broken since RtoL was supposedly introduced in OSX 10.2.3 over a decade ago.
    Peter

  • Displaying only the newest results below. To view all results, narrow your query by adding a filter.

    Hi,
    In one of my list there are 33,000 records.
    It gives message "Displaying only the newest results below. To view all results, narrow your query by adding a filter."
    I don't want to change my threshold limit. Can anybody please tell me steps to resolve this issue?
    Regards,
    Amit Khatri

    I have a list of 11,000 items. Even though I have setup filters on it and it shows all 10 records based on that filter, it still shows that warning on top. For some items, even with those filters, I don't see the list items at all. How do I deal with
    this situation. I don't want to change my threshold limits from CA either. Please help.
    MAK

  • Display User Selection Results on Cover Sheet of the Crystal Report

    How do you display the result of a multi-level dynamic parameter that the user has selected on the cover sheet of the crystal report.
    Or Display the Start & Ending selection results from a dynamic parameter on the cover sheet of the crystal report.

    Replace the code with:
    stringvar selection;
    stringVar array arr1;
    numberVar i;
    redim preserve arr1[count({?ProductID})];
    for i := 1 to count({?ProductID}) step 1 do
    arr1<i> := {?ProductID};
    selection:= 'ProductID is : ' & chr(39) & join(arr1,",") & chr(39);
    This should hopefully fix the error, but I don't think it will solve your problem as it might keep assigning the same product id to each element of the array.
    Have you tried just join({?parameter},', ') as suggested by RG?
    Edited by: Sanjay Kodidine on Jul 1, 2009 10:22 AM

  • How can I display selected tags across multiple e-mail addresses?

    I receive email on a specific topic but via several e-mail addresses. How can I view selected tags where the resulting e-mails span several (7) email addresses. They are all active on my Thunderbird, but as far as I know, I can only display the selected tag on one of them at a time.
    Any assistance greatly appreciated as this is a very big problem for me.
    thanks, Ron75

    This solution does not appear to work across multiple e-mail addresses.
    Perhaps I should have said "work across multiple e-mail address at the same time. I get e-mail on specific topics via several email addresses and wish to view all the tagged emails regardless of which email account in which they reside.
    I could not get this solution to select more than one email account at a time.

  • Displaying the result of the TOP N query

    Hi all,
    we are facing a challenging task were we are going to build a query that gives the answer on the question:
    How many different materials (of the top sold) represent 80% of the total sales in quantity?
    The result should of the query should be very short:
                                                                                    2002           2003             2004
    Nr of materials 
    reps 80%          432            453               499
    The query is build on a CO-PA based cube, where each line corresponds to a billing item with material and quantity.
    By using a Top 80% condition on the quantity sold keyfigure we get out the top 80% materials sold:
    Year     Material     QTYSold        QTYSold-Ranked 
    2002     Mtr0323      10000             1
             Mtr0262      9000              2
             Mtr0243      8700              3
             Mtr0763      600               423
             Result       932000            423
    2003     Mtr0123      9700              1
             Mtr0332      9100              2
             Mtr0243      8700              3
            Mtr0763      543               453
             Result       912000            453
    We would like to supress the materials and only show the result row (or the raked position of the last material).
    The problem is that the 'Calculate Single Value As' properties of a formula (or keyfigure) only applies on Displayed Data values. All tests we have done so far with 'supression of zeros' & 'always hide' has messed up or counting / ranking functions.
    Is there any function in within formulas that have same functionality like Count,Rank etc?
    Is there any other way to supress materials and only show results?
    Any suggestions are welcome!

    Irina,
    Should be achievable using exception aggregation and pre-query.
    Create a query that gives the list of material that account for 80% of the sales using condition on the sales column.
    In the second query, using exception aggregation, count the number of materials that make up this set for the year. Create a new calculated key figure with the formula as qual to sales key figure. In the properties window, press the enhance button and select count of all values in the first drop down and material in the second drop down. Filter the query on material with a characteristic variable with processing as replacement path. In the variable point it to the first query. Drilldown for this will be year.
    This will give you number of materials for one year. If you want comparitive for three years, then three pre-queries and three variables with the calculated key figure restricted to a variable pointing to one years query.
    You can use pre-calculated value sets to improve the run for the result query.
    Cheers
    Aneesh

  • How can I display all results of a array element in a TS2.0 NumericArrayMeasurement in a single report line?

    TestStand2.0 generates for each result property ( data, limits, status...) of each array element in a NumericArrayTest an extra line in the test report.
    How can I change this to display all result properties of one array element in a single line?
    How can I reduce the spaces between the property name and its value in the report?
    How can I delete the message: "Measurement[x]" and display only the Measurement Alias (named in the Edit Limits menu)?
    This means I like to change my report from:
    Measurement[0] (ADC1):
    Data: 5000
    Status: Passed
    Measurement[1] (AD
    C2):
    To:
    ADC1: Data: 5000 Status: Passed
    ADC2: ...

    Hi,
    What you can do, is use the Override Callbacks for Modify the Report that is Generated.
    Also you can also change the report sequence 'reportgen_txt.seq' to achieve the desired affect. If you go for modifying the report sequence then copy this to the User folder and then make your changes.
    In the Resources Library you can find simple examples were the report has been modified by either using the Override Callbacks or by modifying the actual sequence.
    One other item in the Report Options you will have to set the 'Select a Report Generator for Producing the Report Body' control to use the Sequence instead of the DLL.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • Display No Results Found in APEX page

    I have a page with two regions the top region is an html region where users enter query criteria and generate an interactive report in the second region.  The second region only displays if there are results from the query in the first region.  I would like to display a "No Results Found" message rather than a blank screen if there are no results found.  However, I don't know exactly how to do that.  I tried to do it in the Interactive Report region, however, once I added the Conditional display to only when exists rows in the Interactive Report from the query criteria.
    Any help is much appreciated.
    Thanks.

    If I understand correctly, you'll want to add an exists condition to your second region (then IR correct?) that uses the basic same SQL with the criteria, but doesn't need to return all the rows (select 1 from ...). Then you'll want to add another HTML region (a 3rd region) with your friendly message in it and with the same SQL condition as before but with a "not exists" so that it's the opposite situation. Basically the regions will flip on or a off based on the results.
    thanks
    Jorge

Maybe you are looking for