+ 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,