You need to sign in to do that
Don't have an account?
Geoff Spozetta
Command Button (Edit) Does not display
Hi, I seem to be running into an issue where I do not see an edit button displaying in the following code. which is odd, because all of the recirds display just fine.
<apex:page showHeader="false" standardController="custom_object__c" recordsetvar="orders" > <apex:include pagename="Header"/> <apex:include pagename="NavBar"/> <div class="container"> <div class="row"> <div class="col-md-12"> <h2>My Orders</h2> <apex:form > <apex:PageBlock rendered="{!IF($User.Id==custom_object__c.CreatedByID || $Profile.Name='System Administrator', true, false)}" > <apex:pageblockTable value="{!orders}" var="o"> <apex:column headervalue="Created By" value="{!o.CreatedBy.Name}"/> <apex:column value="{!o.CreatedDate}"/> <apex:column value="{!o.Name}"/> <apex:column value="{!o.anothercustomfield}"/> <apex:column value="{!o.custom_field}"/> <apex:column value="{!o.custom_field1}"/> <apex:column headervalue="Edit"> <apex:commandButton value="Edit" action="{!Edit}" id="edbtn"/> </apex:column> </apex:pageblockTable> </apex:Pageblock> </apex:form> </div> </div> </div> <!-- FOOTER --> <apex:include pagename="footer" /> </apex:page>
Replace VFPageName with your actual page name, to redirect back to VF page after editing the record.
Just Try output link and remove commandButton.
I tested same in my Developer org
Your code should be like below
Please let us know if this will help you