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
Benedict Yeo 6Benedict Yeo 6 

Connecting a custom object to a standard object

I have a custom object Inventory, which has a many-to-one relationship with the standard object Product. I'm trying to write some VisualForce code to link the two together, but have not had success. Anyone has any idea how this can be done? Thanks!
bob_buzzardbob_buzzard
This sound like an example of editing parent and child records through the same page - I've written a couple of blog posts on this, it manages accounts and contacts but should be relatively straightforward to adapt:

http://bobbuzzard.blogspot.co.uk/2011/03/edit-parent-and-child-records-with.html
http://bobbuzzard.blogspot.co.uk/2011/04/edit-parent-and-child-records-with.html