Contents
First make sure notes and attachment are enabled for that custom object. I have requirement of create a Visualforce Related List to display Notes and Attachment Details in Contact object with Edit and Delete Actions. Why create a VF page when its already there in the related list of contact object with Edit and Delete actions.
Why do I need to create a VF page?
Why create a VF page when its already there in the related list of contact object with Edit and Delete actions. I want to restrict other user to edit and delete option means i want to hide these two options for other user .
How to use custom button in list view?
List View Custom Button Example Lets get started with a Custom Button on the Account List View. When adding a List Custom Button you have two choices, do you want the user to be able to select records or not? If not, then your button will pass all the records in the List View (currently limited to 2000).
You can share the controller for both vf pages. Use same controller class for both vf pages. Then you can redirect the page as follows setRedirect (false) will keep your records in manipulated list. Then you can access that list of object from second page.
How to create custom list view in apex?
Finally, you can use a StandardSetController within a Custom Controller and set the desired ListView in Apex using setFilterID, which is covered in the documentation here. Thanks for contributing an answer to Salesforce Stack Exchange!
How to display a field value in Visualforce?
Displaying Field Values with Visualforce has more information about retrieving the ID of a record. value takes a list of sObject records or values of any other Apex type.
How to create a table of data in Visualforce?
Some Visualforce components, such as or , allow you to display information from multiple records at a time by iterating over a collection of records.