function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC_2706SFDC_2706 

vf page to add and delete records using custom buttons...!!

 

Hello all,

   I am a beginner in salesforce so i need some help from our professionals...below is my requirement :

 

I have 2 custom objects Employee__c and EmployeeDetails__c....EmployeeDetails__c has a employee__c lookup field....Now i want to make one custom button "MORE" on Employee__c detail page next to new EmployeeDetails__c button....Now after clicking on MORE , a vf page should open which displays the records of EmployeeDetails__c....

VF page contains two buttons i.e +ve and -ve buttons....On clicking +ve it should add the EmployeeDetails__c records and on clicking -ve it should delete EmployeeDetails__c records on that VF page itself....

 

This should be done using wrapper class....So i need to make one wrapper class and one vf page...

Any help would be greately appreciated....thanks in advance....