• anuj pathak 2
  • NEWBIE
  • 30 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies
Hi Team,

I need to display data from an external system inside of  Salesforce, and has chosen not to enable lightning Experience. we do not need the  data for any other purposes within Salesforce.

How to cover this requirment
 
Hi Team,

I need to create a account that's have lastmodified date in prevous months, but LastModified field is non writable. so how i can cover my test class.

 
I am not able to get opportunity List in VF page , can you please suggest what i doing wrong
 
<apex:page controller="OppsearchController">
<apex:form >
<apex:pageBlock id="pb" mode="edit">
<apex:pageBlockSection >
<apex:pageBlockSectionItem >
<apex:outputLabel for="Search String">Search String</apex:outputLabel>
<apex:panelGroup >
<apex:inputText value="{!searchString}"/>
<apex:commandButton value="GO" action="{!oppResults}" status="as" reRender="pbt"/>
<apex:actionStatus startText="Searching......." id="as"></apex:actionStatus>
</apex:panelGroup>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockSection title="Result">
<apex:pageBlockTable value="{!OppSearchResult}" var="opp" id="pbt">
<apex:column value="{!opp.name}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
public class OppsearchController {

	List<Opportunity> OppSearchResult;
	public String searchString { get; set; }
	
	public List<Opportunity> getOppSearchResult() {
		return OppSearchResult;
	}

	public PageReference oppResult() {
		OppSearchResult = (List<Opportunity>)[FIND :searchString RETURNING Opportunity(Name)][0];
		return null;
	}
}