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
bs881026bs881026 

hi, I need to create a custom functionality, have a VF page

Hi,

I need to build a functionality in a VF page, wherein I can have a lookup field on an Object A to an object B
Now my requirement is to map some of the fields from object B to A and then save it. 

Thanks,

Chinmay BhusariChinmay Bhusari
Hi,
i think you will have to write a trigger.
Gaurav NirwalGaurav Nirwal
you can use trigger that help to create a custom functionality on a vf page 
Gaurav NirwalGaurav Nirwal
You can see the blog of bob Buzzard it can defines very well 

http://bobbuzzard.blogspot.co.uk/2010/09/visualforce-lookup.html
http://bobbuzzard.blogspot.co.uk/2011/02/layered-visualforce-lookup.html
Gaurav NirwalGaurav Nirwal
It is a example of add button functionality use it 

In a visualforce page with two different components a & b, i want to create an add button which adds fields from component A and add it to the fields on component B while creating a record on component B.

both these components have same field name (ADD)

Component a(object 1)      Component b (object 2)
FIELD 1                    FIELD 1
FIELD 2                    FIELD 2
FIELD 3                    FIELD 3 
FIELD 4                    FIELD 4
START DATE/TIME            START DATE/TIME           
END DATE/TIME              END DATE/TIME
the add button has to pickup the field values from component A and add it to Component b.