Guest User

Untitled

a guest
Mar 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. public class MemberPaymentFinishController2 {
  2.  
  3. public Flow.Interview.Manual_Membership_Payment theFlow {get; set;}
  4.  
  5. public String getFinishURL() {
  6. String FinishURL;
  7. if (theFlow==null) return '';
  8. else return theFlow.varOppID;
  9. }
  10.  
  11. public PageReference getFinishPage(){
  12. PageReference p = new PageReference('/' + getFinishURL());
  13. return p;
  14. }
  15. }
  16.  
  17. <apex:page Controller="MemberPaymentFinishController2" >
  18. <flow:interview name="Manual_Membership_Payment" finishlocation="{!FinishPage}" />
  19. </apex:page>
  20.  
  21. public class quickCreateContactController {
  22.  
  23. public String myNewId { get; set; } //not needed, forgot to remove
  24. public Flow.Interview.Quick_Create_Contact quickCreateFlow { get; set; }
  25.  
  26. public String getFinishURL() {
  27. String FinishURL;
  28. if (quickCreateFlow != null) {
  29. FinishURL = quickCreateFlow.vaNewCreatedContactId;
  30. return FinishURL;
  31. }
  32. else return 'home/home.jsp';
  33. }
  34.  
  35. public PageReference getFinishPage(){
  36. PageReference p = new PageReference('/' + getFinishURL());
  37. return p;
  38. }
  39. }
  40.  
  41. <apex:page controller="quickCreateContactController">
  42. <div id="flow">
  43. <flow:interview name="Quick_Create_Contact" interview="{!quickCreateFlow}" finishLocation="{!FinishPage}">
  44. </flow:interview>
  45. </div>
  46. </apex:page>
  47.  
  48. quoteFlow.varNewQuoteId
Add Comment
Please, Sign In to add comment