You need to sign in to do that
Don't have an account?
Jacob W Landis
How to make one dynamic edit page for all children
Hi,
We have one master object which has 6 master-detail children objects. As I know there is no way to make master-detail field read only in creating new children page. So I want to code my own dynamic page which can be used for all children objects. My plan is
1. Create a vf page, this page has to be dynamic generated, based on which object be passed in parameter.
2. create a custom button for every children object and pass the parentid and children object name to this vf page.
Is this possible? is there any sample code that I could reference?
We have one master object which has 6 master-detail children objects. As I know there is no way to make master-detail field read only in creating new children page. So I want to code my own dynamic page which can be used for all children objects. My plan is
1. Create a vf page, this page has to be dynamic generated, based on which object be passed in parameter.
2. create a custom button for every children object and pass the parentid and children object name to this vf page.
Is this possible? is there any sample code that I could reference?
Any Wayz You can you Schema methods and generate the VF page with the fields present in that object.(Every thing is Dynamic)
Why not create six pages with six own controllers, that might be a bit much for nearly the same but if something goes wrong it is way more maintainable than to put all in one big class.Also you can then simply override the NEW button on each sibling with its own related VF page
For displaying the master-detail on the page I would use a custom filed ( custom link ) and not putting the master detail onto the layout at all
so you don't need to mess around with it