You need to sign in to do that
Don't have an account?
Will@X-IO.com
Visual Workflow in VFP with rerender and finishlocation
I have created 2 VFPs to house 2 different visual workflows and instead of refreshing the entire page on each 'Next', I have used rerender to update just the flow's output panel. What I'm struggling with is that on Finish, I want the to reload the source record (a Case), but since it wants to rerender in the output panel, I receive an error that "This content cannot be displayed in a frame.". How can I get it to rerender the frame during the flow, but reload the entire page after the flow (instead of the flow looping back to the beginning.
<apex:page standardController="Case" title="Create Data Migration Child Case"> <style type="text/css"> body { background: #C2D3FF; margin: 20px; } p.FlowTitle { font-size:25px; font-weight: bold; text-align: left; margin: 15px; } .FlowContainer { line-height: 150%; margin-left: 20px; margin-top: 0px; padding: 10px 10px; width: 800px; background-color: #EEF6FF; } body .bPageBlock .pbBottomButtons { background: #6B7C8E; } body .bPageBlock .pbBody { } </style> <apex:pageBlock title="Create Data Migration Child Case"> <apex:pageBlockSection title="Case Information"> <apex:outputField value="{!case.casenumber}"/> <apex:outputField value="{!case.account.name}"/> <apex:outputField value="{!case.asset.name}"/> <apex:outputField label="Contact Name" value="{!case.contact.name}"/> <apex:outputField value="{!case.subject}"/> <apex:outputField label="Case Owner" value="{!case.owner.name}"/> <apex:outputField value="{!case.Severity__c}"/> <apex:outputField value="{!case.status}"/> </apex:pageBlockSection> <apex:pageBlockSection title="Data Migration Child Case Wizard"> <apex:outputPanel id="FlowPanel"> <flow:interview name="DataMigrationCreateChildCase" buttonLocation="bottom" rerender="FlowPanel" finishLocation="{!URLFOR('/{!case.id}')}"> <apex:param name="varUserID" value="{!$User.Id}"/> <apex:param name="varCaseID" value="{!Case.Id}"/> </flow:interview> </apex:outputPanel> </apex:pageBlockSection> </apex:pageBlock> </apex:page>
http://boards.developerforce.com/t5/Visual-Workflow/Return-variable-to-finishLocation/m-p/359223/highlight/true#M83 should hopefully help.