You need to sign in to do that
Don't have an account?
Dhwanika Joshi
I want to pass a string value to a controller method every time it is called by apex:repeat
I have a controller method which returns a list based on a dynamic SOQL query. This method is called by apex:repeat, which iterates over the returned list and displays checkboxes accordingly. For each apex:repeat, I want to pass a different String keyword which is used for the SOQL query. Is there a way how this is possible.
Can anyone suggest a solution?
Can anyone suggest a solution?
you can bind a apex:commandButton to excute Apex method in apex:repeat, and you can pass parameter to apex class by <apex:param> Tag.
please see url below.
https://success.salesforce.com/answers?id=9063A000000e0CvQAI