You need to sign in to do that
Don't have an account?
Error: action="{!clone}": Unknown method 'O__cStandardController.clone()'
I'm creating a custom Visualforce page to override the standard page layout of a custom object, however I'm having an issue when it comes to adding a clone button to the Visualforce page. On the standard page layout for this custom object, I'm able to view and use the Clone button. For some reason, when I try to add the same Clone button to the Visualforce page, I get the following error:
Error: action="{!clone}": Unknown method 'O__cStandardController.clone()'
Am I doing something wrong? I checked the metadata for my custom object, and there is a clone action in the metadata. It seems silly to me that even though it's there on the standard page layout, I can't access it when creating a Visualforce page so I'm guessing I'm calling the action incorrectly.
I'd really appreciate any help! I have only the most basic knowledge of creating extensions, so I'd rather avoid doing so if I can.
Thank you!
Hi,
You have to write the custom code for this and call the clone function from your apex code.
http://boards.developerforce.com/t5/Visualforce-Development/How-to-replicate-Standard-Clone-Behavior-for-VF-Page/td-p/169342
Above will solve your issue
All Answers
Hi,
You have to write the custom code for this and call the clone function from your apex code.
http://boards.developerforce.com/t5/Visualforce-Development/How-to-replicate-Standard-Clone-Behavior-for-VF-Page/td-p/169342
Above will solve your issue
Thank you so much, Abhay!