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

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

    Posted by Vikas Kumar on 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 replied 7 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • 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

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos