You need to sign in to do that
Don't have an account?
AK-2
Opportunity page with component and then saving the opportunity record
I am writing a custom VF page that has tabbed input for different types of related records input. To streamline the coding, I was thinking of moving each tab into a custom VF component with a custom controller. There is only one form on the page that includes all the visible tabs and the related input and only one "SAVE" button on the form. The tabs don't have individual save button.
So, the question is, how do I call save on the custom controller of the components to save the input in the custom tabs?
Thank you.
So, the question is, how do I call save on the custom controller of the components to save the input in the custom tabs?
Thank you.
If you can't do that, you'll need to register the custom controllers with the page controller somehow - I usually pass an instance of the page controller as an attribute and have a method that the component controller can invoke to add itself to a list. Then when the page save method is executed it iterates all of the registered component controllers and executes theirs.