Activity Forums Salesforce® Discussions Apex Param "assignTo" attribute to function correctly with command button Reply To: Apex Param "assignTo" attribute to function correctly with command button

  • sushant

    Member
    February 15, 2017 at 2:29 pm

    Hi Vikas,

    Finally I found the problem. Apex is not supporting param and commandbutton so you have to work around with reRender attribute and reRender not the whole page.

    apex:column headerValue="Action" id="all">
    <apex:commandButton value="Accept" action="{!Accept}" reRender="all" >
    <apex:param name="deal" value="{!deal.Id}" assignTo="{!dealId}" />
    </apex:commandButton>
    <button type="button">Reject</button>
    </apex:column>

    Thanks