• Akash Sil
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi Guys,

I am quiet new to aura component and app development.  Currently facing issue in pushing lightning flow through visualforce page. I have list view from where I am trying to push the records in bulk to lightning flow through VF page and it fails to show the lightning components (for ex. Dependent picklist) as the flow runs in classic runtime environment.

Here's my Visualforce page code for the list view. Could you pelase kindly help me with creating lightning app and lightning component for my use case,
 

<apex:page standardController="WC_Record__c" tabStyle="WC_Record__c" recordSetVar="AllWCRecords" lightningStylesheets="true">
    
<apex:includeLightning />
    <!-- Add below each field you reference in your Flow -->   
    
<apex:repeat value="{!AllWCRecords}" var="row" rendered="false">
        {!row.ID}

    </apex:repeat>
    <!-- Runs your Flow -->   
   
 <flow:interview name="WCR_Process_Record" 
            
          finishLocation="{!URLFOR($Action.WC_Record__c.Tab, $ObjectType.WC_Record__c)}">
        <apex:param name="SelectedRecords" value="{!SelectedRecords}"/>
    </flow:interview>
</apex:page>
Hello everyone! I am trying to create a Rich text Field using VF Page where I can use conditions for checkboxes to retreive the values of text fields from "Case" standard object and populate it in the Rich Text Field area by using a custom action button. I am not experienced in Apex coding therefore seeking out for help in correcting my codes.

VF Page: 

<apex:page standardController="Case" extensions="textEditorcontroller" action="{!getautopopulatevalue}" >
    <apex:form >
    <apex:outputPanel style="padding:50px 50px 50px 50px" id="userDetail">
    <apex:outputText rendered="true">
    <div style="color:black;font-size: 15px;font-weight: bold;align-content: center;margin-top: 10px; margin-left: 10px">
    
  
     </div>
     </apex:outputText>
     <apex:pageBlock >
       <apex:pageBlockTable value="{!Case}" var="CS"> 
       
       </apex:pageBlockTable>
      </apex:pageBlock>
     
       
       
  <div style = "margin-left: 20px; margin-top: 10px">
    <apex:commandButton id="AddProofs" value="AddProofs" action="{!getautopopulatevalue}" />
   
    </div>
    <!--<div style = "margin-left: 10px; margin-top: 10px">-->
    
    
    <apex:inputTextarea id="Richtextarea" richText="true" value="{!Allproofs}"/>
   
 
  </apex:outputPanel>
  </apex:form>
    
</apex:page>

APEX Controller:

public class textEditorcontroller{

    
    public Case cs{get;set;}
    public List<Case> Allproofs{get;set;}
    public List<Case> csValue {get;set;}
    public textEditorController (Apexpages.StandardController stdController){
 
    
    this.cs = (Case)stdController.getrecord();
    }
    
    
    public void getautopopulatevalue(){
    
    
                    
               csValue = ([SELECT Document_1__c,Document_1_Comments__c FROM Case 
                                        WHERE Case.Id = :cs.Id]);
                       
                    Allproofs = csValue;
                         
                         
                        
                   }
    
     
      }


Thanks
Hello everyone! I am trying to create a Rich text Field using VF Page where I can use conditions for checkboxes to retreive the values of text fields from "Case" standard object and populate it in the Rich Text Field area by using a custom action button. I am not experienced in Apex coding therefore seeking out for help in correcting my codes.

VF Page: 

<apex:page standardController="Case" extensions="textEditorcontroller" action="{!getautopopulatevalue}" >
    <apex:form >
    <apex:outputPanel style="padding:50px 50px 50px 50px" id="userDetail">
    <apex:outputText rendered="true">
    <div style="color:black;font-size: 15px;font-weight: bold;align-content: center;margin-top: 10px; margin-left: 10px">
    
  
     </div>
     </apex:outputText>
     <apex:pageBlock >
       <apex:pageBlockTable value="{!Case}" var="CS"> 
       
       </apex:pageBlockTable>
      </apex:pageBlock>
     
       
       
  <div style = "margin-left: 20px; margin-top: 10px">
    <apex:commandButton id="AddProofs" value="AddProofs" action="{!getautopopulatevalue}" />
   
    </div>
    <!--<div style = "margin-left: 10px; margin-top: 10px">-->
    
    
    <apex:inputTextarea id="Richtextarea" richText="true" value="{!Allproofs}"/>
   
 
  </apex:outputPanel>
  </apex:form>
    
</apex:page>

APEX Controller:

public class textEditorcontroller{

    
    public Case cs{get;set;}
    public List<Case> Allproofs{get;set;}
    public List<Case> csValue {get;set;}
    public textEditorController (Apexpages.StandardController stdController){
 
    
    this.cs = (Case)stdController.getrecord();
    }
    
    
    public void getautopopulatevalue(){
    
    
                    
               csValue = ([SELECT Document_1__c,Document_1_Comments__c FROM Case 
                                        WHERE Case.Id = :cs.Id]);
                       
                    Allproofs = csValue;
                         
                         
                        
                   }
    
     
      }


Thanks