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
Chandra PrakashChandra Prakash 

How to get two custom object value in one class.?

hi,

I have two custom object
First : Emplyee List
Second : Sal Increment

In Employee_list__c there is some custome fields [Department(picklist type),Emplyee Name(text), Employe Sal(Number), Total year(Number) ]
In Sal_Increment__c there is some custome fields [Department(picklist type), Tot_year(picklist), Increment(number)]


When Sal_Increment Fill all values(Slect tot_year =1, Increment=10% ) and save then all  Emplyee_list who have one year in this orginaization salery increase 10%. 

how to do by usng Apex Class..   

thnaks...
ShashForceShashForce
Hi Chandra,

Can you tell me what kind of relationship these objects have? master-detail or lookup? If so, which is the parent? If there is no relationship, is there any criteria which connects them in some way?

Thanks,
Shashank
SANKAR NSANKAR N
Hi Chandra,

  Use wrapper class concept to bound two object into apex class. 

 Regards,
Sankar