Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (29.3k points)

How do we use edit and delete actions in standarlist controller. please provide some examples.

1 Answer

0 votes
by (50.2k points)
edited by

edit:    Navigates the user to the edit page for the record that is currently in context. After this operation is finished, the edit action returns the user to the page where the user originally invoked the action.


<apex:commandLink value="Edit" action="{!edit}" />



delete: Deletes the record that is currently in content. After this operation is finished, the delete action either refreshes the page or sends the user to the tab for the associated object.
<apex:commandLink value="Delete" action="{!delete}" />

Enroll in our Salesforce training to become an Expert in Salesforce!

Related questions

0 votes
1 answer
asked Feb 4, 2021 in Salesforce by Sudhir_1997 (55.6k points)
+1 vote
1 answer
0 votes
1 answer

Browse Categories

...