May 2017
Beginner
448 pages
9h 29m
English
You can set Flow variable values using the custom controller as well. You can write a custom controller that sets the variables values, and then you can reference that controller in your Visualforce page. The following example sets the variable OppId value to specific Opportunity IDs when the interview starts using the custom controller, as shown in the following sample code for the controller. The controller is used to get the value in the variable OppId and pass it to the Visualforce page.
public class FlowCustomController { public Opportunity OppId {get; set;} public FlowCustomController () { OppId = [ SELECT Id, Name FROM Opportunity WHERE Name = 'Edge Installation' LIMIT 1]; } }
The following is the ...
Read now
Unlock full access