You need to sign in to do that
Don't have an account?
Art Saber
edit multiple objects from one vf page
Please help! Just started SFDC development. I've tried so many ways and looked at previously asked questions but can't figure out how to get the code right for an extension to a standardcontroller to be able to edit fields from Account and Opportunity on on VF page.
VF Page What does the extension have to look like for the VF page to update the Account fields??
VF Page What does the extension have to look like for the VF page to update the Account fields??
It would look like this
thanks
All Answers
show me extention code .
Regards,
Harish.R.
It would look like this
thanks
Thank you for submitted your reply. I used your reply but the account fields are not updating on Account. Was I suppose to change anything on the VF page?
Thank you
You need to change the save method to point to "SaveRecord", that the only change you need to do.
Thanks
update return type of method from void to Pagereference and add following line at the end of method
return new Pagereference('/'+opportunity.id);