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
PrasadVRPrasadVR 

How to pass values from if page to controller

 Hello...........

    

      I Want to pass values from vf to controller, Here my requirement is when i click on 'A' I want to display only records starts with A,like that i want to search from A-Z,here my problem is how can i pass values from vf to controller , for this i wrote one method ,i want pass parameters to that method dynamically if user clicks on A then the method has to retrieve A accounts only 

PaqsPaqs

Hi vrpnaidu,

 

One way to approach this is to have an apex:inputText component in your VF page linked to a controller's property (like a public String AccountFilter { get; set; }).

Then, with an onchange= event on this component, simply add a link to your apex:actionFunction that would query for the records, based on the current AccountFilter field....

 

Cheers,