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
Shahin__cShahin__c 

Passing input field value as parameter

Hi,

New to SF. Need to pass the selected value from a dropdown list to filter a datatable based on the user selection.

 

<apex:inputField label="Rate Type" id="RateTypeFilter" value="{!GRA_Request_Line__c.Rate_Type__c}"   > <apex:actionSupport action="{!getProductList}" event="onchange"   />    

<apex:param name="filteredText " value="{!RateTypeFilter.value}" />

</apex:inputField>

 

this is where my code is complaining about. How do I reference a controller within VF page?

 

thanks,

Shane

Shashikant SharmaShashikant Sharma

Alternative way :

<script>
fuction callactionFunction(drpDownValue)
{
 jsGetProductList(drpDownValue);
}
</script>
<apex:actionFunction action="{!getProductList}" event=""   name="jsGetProductList">  
<apex:param name="filteredText " value="{!RateTypeFilter.value}" />
</apex:actionFunction>
<apex:inputField label="Rate Type" id="RateTypeFilter" value="{!GRA_Request_Line__c.Rate_Type__c}"   onchange="callactionFunction(this.value);" />

 

try this, let me know if any issues