function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:column> <apex:commandLink action="{!URLFOR($Action.Account.edit,a.id)}"> Edit </apex:commandLink> | <apex:commandLink action="{!URLFOR($Action.Account.Delete,a.id)}"> Del </apex:commandLink> | </apex:column>
<apex:page controller="Sample" action="{!onloadgetAccountId}"> <apex:form > <apex:pageBlock id="details"> <apex:outputText value="{!AccountObject}"></apex:outputText> <apex:commandButton action="{!URLFOR($Action.Account.delete,AccountObject.Id)}" value="Delete" id="deleteButton" /> <apex:commandButton action="{!URLFOR($Action.Account.Edit,AccountObject.id)}" value="update" id="updateButton"/> </apex:pageBlock> </apex:form> </apex:page>
just add this code in your vf page pageblock table...
hope this helps you...
All Answers
Refer following vf page snippet
at place Of AccountObject pass the Account Object as per your requirement.
if you have any doubt feel free to ask.
Best Regards,
Amit Ghadage.
Edit | Delete abc(record name).....
I have create custom class & page where it displays account recrds...wen i edit it should edit and when i should delete it needs to be deleted.....?
Can i know how...?
just add this code in your vf page pageblock table...
hope this helps you...
but also i need to get are you sure while deleting with pop up box may i know how it is possible...?