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

  • Apex Param "assignTo" attribute to function correctly with command button

  • Vikas Kumar

    Member
    February 15, 2017 at 2:25 pm

    Hi All,

    Not able to assign parameter without using re-render attributes with command button

    plz suggest other way out to do so

    Thanks

  • 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

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos