• Stacey Hussey
  • NEWBIE
  • 0 Points
  • Member since 2015
  • R.M.S. Development Specialist
  • Ocean Properties, Hotels & Resorts

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
I have a flow launching from a footer component, and the below code is resulting in the flow finishing and opening the new task record in the footer component. I am looking for the New Task Record to open in a new tab though in the screen. I think I am missing one tiny bit of code to make this happen. Can anyone help??

public class TaskFlowController {
    
    public Flow.Interview.New_Guest_Log theFlow {get; set;}
        
    public PageReference getNewTaskRecord(){
        if(theFlow == null)
            return null;
        else
            return new PageReference('/' + theFlow.varTaskId);
            }
   
}


<apex:page Controller="TaskFlowController">
 <flow:interview name="New_Guest_Log" interview="{!theflow}" finishlocation="{!NewTaskRecord}" buttonLocation="top">
</flow:interview>
</apex:page>


 
I have a flow that I am launching from a custom button on the account page, which launches a visualforce page in a new window. For some reason my flow isn't showing a Finish button. It shows the Previous and Next buttons in the flow, and they are selected to show in the Flow itself which makes me think my custom button page isn't written correctly. When the flow is at the end, I click next and it does end the flow and opens the account page in that same window (which is another separate issue because i want it to close the current window and bring me to the accoutn page where i started - in my instance I have the account page open where I started my flow, and then another duplicate window at the end of the flow.) Any help regarding the finish button would be appreciated!

<apex:page standardController="Account"> <apex:variable var="varGuest" value="{!Account.ID}"></apex:variable> <flow:interview name="Call_Script" finishlocation="{!URLFOR('/'+varGuest)}"> <apex:param name="varGuest" value="{!Account.ID}"/> </flow:interview> </apex:page>
 
We used an app from the appexchange that used a S-Control, but it no longer works (I assume because s-controls aren't accepted anymore?) I think I need to convert this to a Visualforce page but I'm not sure how since I'm not a developer. This will actually be put on a custom object (Property_Basic_Info__c) and it will pull the data from the zip code on this page (Zip_Code__c). 

Here is the code:

<script src="http://gmodules.com/ig/ifr?url=http://gwidget.accuweather.com/adcbin/googleforecastgadget/gadget.asp&amp;up_myzip={!Account.BillingPostalCode}&amp;up_myunits=english&amp;up_mywxview1=calendar&amp;up_mywxview2=hourly&amp;up_mywxstate=1&amp;synd=open&amp;w=320&amp;h=376&amp;title=AccuWeather.com&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

Can anyone help?
I have a flow launching from a footer component, and the below code is resulting in the flow finishing and opening the new task record in the footer component. I am looking for the New Task Record to open in a new tab though in the screen. I think I am missing one tiny bit of code to make this happen. Can anyone help??

public class TaskFlowController {
    
    public Flow.Interview.New_Guest_Log theFlow {get; set;}
        
    public PageReference getNewTaskRecord(){
        if(theFlow == null)
            return null;
        else
            return new PageReference('/' + theFlow.varTaskId);
            }
   
}


<apex:page Controller="TaskFlowController">
 <flow:interview name="New_Guest_Log" interview="{!theflow}" finishlocation="{!NewTaskRecord}" buttonLocation="top">
</flow:interview>
</apex:page>


 
I have a flow that I am launching from a custom button on the account page, which launches a visualforce page in a new window. For some reason my flow isn't showing a Finish button. It shows the Previous and Next buttons in the flow, and they are selected to show in the Flow itself which makes me think my custom button page isn't written correctly. When the flow is at the end, I click next and it does end the flow and opens the account page in that same window (which is another separate issue because i want it to close the current window and bring me to the accoutn page where i started - in my instance I have the account page open where I started my flow, and then another duplicate window at the end of the flow.) Any help regarding the finish button would be appreciated!

<apex:page standardController="Account"> <apex:variable var="varGuest" value="{!Account.ID}"></apex:variable> <flow:interview name="Call_Script" finishlocation="{!URLFOR('/'+varGuest)}"> <apex:param name="varGuest" value="{!Account.ID}"/> </flow:interview> </apex:page>
 
I'm trying to get the background color of my text template in a visual flow to be white. However, whenever I use standard HTML syntax it doesn't reflect on the output. 

I've tried putting it in a header
<h2 style="background-color:white">
Background-color set by using red
</h2>

I've tried putting the text inside a table and setting the color of the background of the table. 

Is this a limitation of text templates in visual flows? Or am I missing something obvious? 
We used an app from the appexchange that used a S-Control, but it no longer works (I assume because s-controls aren't accepted anymore?) I think I need to convert this to a Visualforce page but I'm not sure how since I'm not a developer. This will actually be put on a custom object (Property_Basic_Info__c) and it will pull the data from the zip code on this page (Zip_Code__c). 

Here is the code:

<script src="http://gmodules.com/ig/ifr?url=http://gwidget.accuweather.com/adcbin/googleforecastgadget/gadget.asp&amp;up_myzip={!Account.BillingPostalCode}&amp;up_myunits=english&amp;up_mywxview1=calendar&amp;up_mywxview2=hourly&amp;up_mywxstate=1&amp;synd=open&amp;w=320&amp;h=376&amp;title=AccuWeather.com&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

Can anyone help?
An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.

I have a visual flow consisting of one screen with three fields and two record creation elements. The three fields pass into the create record element to make a new record. This works. The record ID is saved into a variable.

This variable of the record ID is passed to the next record element as input for a Master-Detail relation. For some reason I receive the error above.

There are only two required fields for the second object. A Master-detail relation and a Name. I inserted a screen between the two elements to confirm that the variables are being created correctly. What could possibly be going on to prevent the second record from being created?

I am new to Visual Force and I have what I feel like shouldn't be that difficult of a task.  On the Event object I am trying to create a button that when a user clicks it will create a record on a custom object.  Anyone have any suggestions as to how to get this process off the ground?