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
Tanvi KakkarTanvi Kakkar 

How to update / store a value in look- up field ? and in Master detail relationship ?

Mahmood ButtMahmood Butt
For relationships in general kindly go through this post
http://www.salesforce.com/developer/docs/api/Content/relationships_among_objects.htm

You should look at this post for lookup relationship values
http://stackoverflow.com/questions/20162852/how-to-insert-data-into-a-custom-object-with-lookup-field-from-apex-controller

For master-detail values update will work the same way as in the above link.