You need to sign in to do that
Don't have an account?
Dave Stevenson
Why is quicksave listed in some documents but not others?
Why is quicksave listed in the VisualForce Developer Guide under "Using Standard Controller Actions", but not under "StandardController Methods" in either the VisualForce Developer Guide or the Apex Developer Guide?
As per my knowledge, Controller action methods are supported by all standard controllers. You can associate these actions with any Visualforce component that includes an action attribute.
These methods can be directly used in Visual force page with ! notation.
Action methods perform logic or navigation when a page event occurs, such as when a user clicks a button or hovers over an area of the page. Action methods can be called from page markup by using {! } notation in the action parameter.
Standard controller methods must be called with the instance as they are instance methods.These have a return type.
These methods are used in Apex controller as below
Hope this helps you!
Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
Thanks and Regards
Sandhya
If I can use standard controller actions like quicksave and CloseCase in a Visualforce page: can I also call them from my controller extension?:
If I can, then why are quicksave and closeCase not listed as controller methods in the documentation?
I may not have conveyed you properly.
I am not aware of closecase() anywhere as in action method or standard controller method.
But yes you can use the But you cannot use the
Instead you can use
That means save() is instance method and also action method so we can use in visual force page as well as controller method.
But quicksave is only action method, and that can be used only in visual force page.It cannot be used in the controller because that is not an instance method.
In simple words, controller action methods are used in visual force page, and controller instance methods are used in the controller.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_std_actions.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/apex_ApexPages_StandardController_methods.htm
Thanks and Regards
Sandhya
It seems to me that salesforce uses a bit of hand waving while saying "This is an action", as though the gestures make it more clear. At least for the weak-minded who are susceptible to hand waving: "These are not the droids you're looking for."
Of course, using sC.save() will get me the first half of saveAndClose(). But how would I get the second part?: If only I had studied Jedi hand gestures in school, the salesforce documentation might make more sense to me.