• Hanuma Rudraraju
  • NEWBIE
  • 0 Points
  • Member since 2019
  • Salesforce Developer
  • TechMahindra - BCBSA


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
Module: Lightning Flow
            : Guide Users Through Your Business Processes with Cloud Flow Designer

Issue   : Unable to complete the challenge - Guide users through creating a lead

Can't find the forceContent:fileUpload Lightning component in the 'New Lead' flow. Make sure the field’s unique name is 'Upload_File'

For some reason i'm unable to save as Upload File field name. I have checked for any duplicates in FLOW's and deleted the one which had but still getting same error message.

Could anybody please assist me on this?

Cheers

I am stuck on the Process Automation Trailhead - Customize How Records get Approved with Approvals:
"Create an approval process that validates when a Prospect Account becomes a Customer."

I did everything in the notes before trying the challenge.
I started a new Approval Process under Account as I believe the instructions mention. I am not sure what is wanted for the "Specify Criteria" section as I don't see it being asked for in the Challenge, but it seems to be a field that wants to be filled out? Please help!User-added image

Here is my code: 
public class StringArrayTest {
    public static List<String> generateStringArray(Integer len){
        List<String> myarr = new List<String>();
        for(integer n=0;n<=len;n++)
        {
            myarr.add('Test' +n);
            system.debug(myarr[n]);
        }
        return (myarr);
    }
}

I am getting this error on a VF page :

 

This page is redirected from another controller class : The details are coming on the URL but on the page it is displaying error as :Page DetailController does not exist 

 

External Controller Class : Method :

 

public PageReference SaveChanges()

{
String OppId = ApexPages.currentPage().getParameters().get('Id');
Splits__c LitOrd = new Splits__c();
DSObj = new List<Splits__c>();
LitOrd.Opportunity__c= Opp.id ;
DSObj.add(LitOrd);
insert DSObj;
insert OppTeam;
PageReference pageRef = new PageReference('/apex/DetailController?Id='+opp.Id);
return pageRef;

}

 

--------------------------------------

 

VF page :

<apex:page controller="DetailController" tabstyle="Opportunity">
<apex:form >
<apex:pageBlock title="Region Details">
<apex:pageBlockTable value="{!wrappers}" var="wrapper" id="wtable">
<apex:column headerValue="Ident">
<apex:outputText value="{!wrapper.ident}"/>
</apex:column>
<apex:column headerValue="Region">
<apex:inputField value="{!wrapper.MSalesO.Region__c}"/>
</apex:column>
</apex:pageBlockTable>
<apex:commandButton value="Save" action="{!save}"/>
</apex:pageBlock>
</apex:form>
</apex:page>

--------------------------------------

 

Controller Class :

public class DetailController
{

public List<SOWrapper> wrappers {get; set;}

public static Integer addCount {get; set;}
private Integer nextIdent=0;

public DetailController()
{
wrappers=new List<SOWrapper>();
for (Integer idx=0; idx<5; idx++)
{
wrappers.add(new SOWrapper(nextIdent++));
}
}
public void addRows()
{
for (Integer idx=0; idx<addCount; idx++)
{
wrappers.add(new SOWrapper(nextIdent++));
}
}

public PageReference save()
{
List<Order__c> MSO=new List<Order__c>();
for (SOWrapper wrap : wrappers)
{
MSO.add(wrap.MSalesO);
}

insert MSO;

return new PageReference('/' + Schema.getGlobalDescribe().get('Order__c').getDescribe().getKeyPrefix() + '/o');
}

public PageReference SaveDS()

{
return null;
}
public class SOWrapper
{
public Order__c MSalesO {get; private set;}
public Integer ident {get; private set;}

public SOWrapper(Integer inIdent)
{
ident=inIdent;
MSalesO=new Order__c(Opportunity__c='006f0000003afa5' + ident);
}
}

}

Hi,,

 

Could you please help mw in the below code as it is throwing an 'Error: Compile Error: unexpected token: public at line 8 column 0'

 

public class test1
{
public integer text1{get;set;}
public integer text2{get;set;}
public integer text3{get;set;}
public integer text4{get;set;}
}
public decimal avg(int text1,int text2,int text3,int text4) ---------------------------------Errror line...
{
int result;
result = ((text1+text1+text1+text1)/4);
return result;
}

 

Regards