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
sandysf11sandysf11 

command link in a pageblock table's column

Hi, i need to display a command link "Edit" in a pageblocktable column,how can i achiece this?

 Anyone give yhe suggestion?

 

 

Thanks in advance.

Chamil MadusankaChamil Madusanka

You can use command link in pageblock table colomn as following way

 

<apex:pageBlock title="New Company Approval Policies">
  
           <apex:pageBlockTable value="{!NewCompanyApproval}" var="ca">
               <apex:column headerValue="Company">
                   <apex:outputField value="{!ca.NewCA.Company__c}" rendered="{!ca.Deleted == false}"/>
               </apex:column>
               <apex:column headerValue="Approval Type">
                   <apex:outputField value="{!ca.NewCA.Approval_Type__c}"  rendered="{!ca.Deleted == false}"/>
               </apex:column>
               <apex:column headerValue="Approver Type" >
                   <apex:outputField value="{!ca.NewCA.Approver_Type__c}"  rendered="{!ca.Deleted == false}"/>
               </apex:column>
               <apex:column headerValue="Unit" >
                   <apex:outputField value="{!ca.NewCA.Unit__c}"  rendered="{!ca.Deleted == false}"/>
               </apex:column>               
                <apex:column >
                   <apex:commandLink value="Delete" reRender="upsertApproval" action="{!methodOne}"/>
               </apex:column>
           </apex:pageBlockTable>
       </apex:pageBlock>

 This is one of my code segment. Get the understand from this and apply to your requirement.

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.