function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Andrew AldisAndrew Aldis 

Flow from a visual force page

I am trying to call a flow from a visual force page to launch a simple wizard to create records.  I am trying to call the flow from a button on a Tabbed Visual force page with a related list.  All I need to do is set the flows variable with the ID from the I have tried using a standard controller of the parent object and the child object as well as multiple classes, and none of them seem to be able to set the variable.  Below is my Class and VF page.

public class SignInstanceWizardVfPageClass {
  Public String VarId =  ApexPages.currentPage().getParameters().get('id'); 
  public Client_Workbook__c CwId {get; set;}

     public SignInstanceWizardVfPageClass() {
        CwId = [SELECT Id FROM Client_Workbook__c WHERE Id = :VarId LIMIT 1];
    }
}



<apex:page Controller="SignInstanceWizardVfPageClass" >

    <flow:interview name="SignInstanceWizard"  >
        <apex:param name="ClientWorkbookId" value="{!CwId}"/>
    </flow:interview>
</apex:page>