Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Action Class
Namespace
Usage
For example, you could create a saveOver method on a controller extension that performs a custom save.
Instantiation
1ApexPages.Action saveAction = new ApexPages.Action('{!save}');Action Constructors
The following are constructors for Action.
Action(action)
Signature
public Action(String action)
Parameters
- action: Type: String The action.
Action Methods
The following are methods for Action. All are instance methods.
getExpression()
Signature
public String getExpression()
Return Value
Type: String
invoke()
Signature
public System.PageReference invoke()
Return Value
Type: System.PageReference