function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kamal3883kamal3883 

How to use button in each row of Visualforce.

Can anybody please help me with VF page and controller of below page. i develop one page but not able to add accept button in each row. Button should update Row whenever ClickedUser-added image
Edwin VijayEdwin Vijay
Use a PageBlockTable or an Apex:Repeat , Something like the code below. In the commandlink action function get the parameter 'rowid' and update the appropriate record.

<apex:repeat value="{!allRows}" var="row">
      <apex:column headervalue="Button">
                <apex:commandlink action="{!updaterow}">
                          <apex:param name="rowid" value="{!row.Id}/>
                           <apex:commandbutton value="Click to update"/>
                 </apex:commandlink>
        </apex:column>
</apex:repeat>