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
Hariharan Sankaran 7Hariharan Sankaran 7 

Auto populate using visualforce and apex class

Hi Dears,
I have 3 objects like A,B and C
A - Account
B - Study
c - invoice
 B having the look-up field of A (account name) now I want to show the auto pop-up of account name in the invoice object based on the study id. using visual force and apex class. 
I'm tried below the ways to auto pop-up
1.field mapping (using formula)
2.visual workflow
3.process builder (for cross object population)
4. Workflow
5.Triggers
Note
1.when we are using field mapping it will work standard salesforce only, but in the visualforce not working(values not displaying)
2. I can't  create the formula field using look-up function.
       could you please guide me any idea to display the auto pop-up of look-up field is one object to another object. or can you tell me any suggestion to complete this task.


Below is the relationship of 3 objects
A - Account  (sponsor company)   - Parent
B - Study     - child of Account  - look-up relation ship
c - invoice    -  child of Account - look-up relation ship

each object having one to one relationship.