function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
krish4ukrish4u 

Auto Complete Functionality with action function

Hi Folks ,

 

I am using Auto complete functionality for lookup. It is working fine, but after selecting the searched dropdown list record value which event will fire? I used onchange function not working[if i use onpress or onclick it will not work because of i am disabling enter function through script(see below)]. Already i tried different events like onselect etc. with out using  Auto complete  Onchange function working fine . Using onchnage mehod i am getting some values from controller based on account lookup value.

 

<script>    function noenter(ev)   

{       

if (window.event && window.event.keyCode == 13 || ev.which == 13)       

{           

var ele=document.getElementById(cl);           

ele.click();           

return false;       

}       

else       

{           

return true;       

}   

}

</script>

 <apex:inputField value="{!m.Account__c}" onkeypress="return noenter(event);" onchange="test()" id="acc">                  

<c:autoCompleteController objectname="Account" additionalfield="TickerSymbol" autocomplete_textbox="{!$Component.acc}" />        

 <apex:actionFunction name="test" action="{!sample}" reRender="pb1">         

<apex:param value="{!m.Account__c}" name="ac"/>       

 </apex:actionFunction>   

 </apex:inputfield>

 

plase suggest on this..........................................................................

 

thanks 

krish

tbuckettbucket

I see ths post is pretty old...have you fine tuned your issue here?  I'm looking to have one of my develpers (or someone) to convert a few of my lookups to auto-completes.  How fast is it?  The object I will be using it against is about 5,000 - 7,500 records.  We might put a category filter in front of it so it does not return too many...or just not have it begin the auto-completion until the 3rd or 4th character.  Any pointers?