Activity Forums Salesforce® Discussions Can a variable be passed to an apex:repeat in Salesforce?

  • Surbhi

    Member
    May 25, 2016 at 5:20 am

    Hi Ravi,

    It's not possible to pass a value to a getter variable. It seems getter methods get executed exactly once and are then cached in the background so if your VF page calls the same getter twice, it will simply receive the data from the first execution and the getter code will not be executed again.

    Thanks

  • Avnish Yadav

    Member
    September 30, 2018 at 4:58 am

    Hello,

    It's not possible to pass a value to a getter.

    Thanks.

  • Avnish Yadav

    Member
    September 30, 2018 at 4:59 am

    I would suggest as a best practice to use <apex:param> than passing through url since I have seen browsers like IE having URL limits of 2000 characters 🙂

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos