-
Custom list button to add existing records in a related list
I have 1 custom object "Loan__c" with master-detail relationship to Account (used for loan of equipments).
I am planning to use the Asset object to manage my stock of loan equipments.
I created a custum field "LoanRef__c" into Asset with look-up relationship to the Loan__c object.I have a related list "Assets" in the "Loan__c" object - I'd like to add a custom list button there to add existing asset records to this loan. When clicked, the list of all existing asset records must be shown with ability to check the ones I want to add to the loan.
I guess I need to develop an apex class + visualforce page.
I'm a novice with apex and visual force but I tried to adapt some similar codes found on the forum, with no success.
Log In to reply.
Popular Salesforce Blogs

Salesforce for Nonprofits – Don’t miss out on these amazing benefits
Giving back has been part of the DNA of Salesforce. Since inception, the Global tech giant has been on a mission to empower Nonprofits through…

All About Apex Testing in Salesforce
Apex Unit Tests Apex unit tests ensure superior grades for your Apex code and let you meet the essentials for deploying Apex. Testing is the…
Popular Salesforce Videos
What is APEX? | Features of APEX | Salesforce Development Course
This is the first Chapter of the Salesforce Development Course video series. In this video, Shrey has answered the following questions: What is APEX? What…
Salesforce Loves Small Business
Running a small business takes a lot of heart during even the best of times. 2020 has presented a series of challenges that have hit…
Salesforce Training Videos - Discussion on Admin Concepts
A Salesforce Admin is a business leader, deeply knowledgeable about how their company operates, intertwined in making all departments successful through process automations, and thus,…