Activity Forums Salesforce® Discussions Which action methods do standard controllers contains in Salesforce visualforce page?

  • Tanu

    Member
    September 27, 2016 at 1:12 pm

    Hello Pranav,

    Standard controllers contains following action methods in visualforce page are

    1.  save - Inserts a new record or updates an existing record if it is currently in context. After this operation is finished, the save action returns the user to the original page (if known), or navigates the user to the detail page for the saved record.
    2. quicksave - Inserts a new record or updates an existing record if it is currently in context. Unlike the save action, this page does not redirect the user to another page.
    3. 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.
    4. 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 tab for the associated object.
    5. cancel - Aborts an edit operation. After this operation is finished, the cancel action returns the user to the page where the user originally invoked the edit.
    6.  list - Returns a PageReference object of the standard list page, based on the most recently used list filter for that object. For-example, if the standard controller is contact, and the last filtered list that the user viewed is New Last Week, the contacts created in the last week are displayed.
  • Pooja

    Member
    February 7, 2020 at 2:25 pm

    There are various action methods which do standard controllers contains in salesforce visual force page that are as follows-

    1. Save
    2. QuickSave
    3. Edit
    4. Delete
    5. Cancel
    6. List

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos