You need to sign in to do that
Don't have an account?
Skeeter
Visualflow Custom Button and controller
I am trying to create a custom button that will start a visual flow and finish at the list view of that object.
The VF page does not show as an option to overwrite the new button. I'm pretty sure this is because I am not using a standard controller.
Any help is greatly appreciated.
Visualforce Page
Controller
The VF page does not show as an option to overwrite the new button. I'm pretty sure this is because I am not using a standard controller.
Any help is greatly appreciated.
Visualforce Page
<apex:page Controller="ExecFinController" TabStyle="BI_Executive_Financial_Dashboard__c"> <flow:interview name="BI_Executive_Finance_Flow" finishLocation="{!OID}"/> </apex:page>
Controller
public class ExecFinController { public Flow.Interview.BI_Executive_Finance_Flow myFlow { get; set; } public PageReference getOID() { Schema.DescribeSObjectResult result = BI_Executive_Financial_Dashboard__c.SObjectType.getDescribe(); PageReference pageRef = new PageReference('/' + result.getKeyPrefix() + '/o'); pageRef.setRedirect(true); return pageRef; } }
Visualforce page
All Answers
Visualforce page