• SriramR14
  • NEWBIE
  • 8 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 8
    Replies
Data Not Available

You do not have Edit access to one of the two records you are trying to merge. Please contact your administrator to get additional access or merge the two records
Click here to return to the previous page.
User-added image


Thanks,
Sriram.R
public class Soql_example_5 
{
    public string searchText    {set;get;}
    public string query            {set;get;}
    public List<Account> accounts        {set;get;}
    
    public void fetchData()
    {
      string query='select id, name, phone, industry from Account where name like \' % '+searchText+' % \' ';
        accounts =Database.query(query);
    }
}

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

<apex:page controller="Soql_example_5">
    <apex:form id="fm">
         
        <apex:inputText value="{!searchText}"/> 
        <apex:commandButton value="Go" action="{!fetchData}" reRender="fm"/><br/><br/>
 
     <apex:pageblock>
          <apex:pageBlockSection>
            <apex:pageBlockSectionitem>
        <apex:pageBlockTable value="{!accounts}" var="a" cellpadding="50" width="2000" rules="rows" border="frame" rendered="{!NOT(ISNULL(accounts))}">
            <apex:column value="{!a.name}" headervalue="Name"/>
            <apex:column value="{!a.phone}" headervalue="Phone"/>
            <apex:column value="{!a.industry}" headervalue="Industry"/>
        </apex:pageBlockTable>
        </apex:pageBlockSectionitem>
    </apex:pageBlockSection>
            </apex:pageblock>
    </apex:form>
</apex:page>
Hi All

 


 <apex:pageBlock rendered="{!lstud.size>0}">
            <apex:pageBlocksection>
           <apex:pageBlockTable value ="{!lstud}" var="act">
                <apex:column value="{!act.acc.Name}"/>
                <apex:column value="{!act.acc.Phone}"/>
                <apex:column value="{!act.acc.Industry}"/>
                <apex:column value="{!act.con.LastName}"/>
                <apex:column value="{!act.con.FirstName}"/>
           </apex:pageBlockTable>
              </apex:pageBlocksection>
        </apex:pageBlock>


I am getting this below error on the tab.

The value 'null' is not valid for operator '>'
Error is in expression '{!lstud.size>0}' in component <apex:pageBlock> in page list_accountinfo_vfp

<apex:page controller="List_Example_2">
    <apex:form>
    <apex:pageblock title="Student" id="fm"    >
        
         
            <apex:pageblockbuttons location="top">
                <apex:commandbutton value="Add" action="{!Addme}" reRender="fm"/>
                <apex:commandbutton value="Clear" action="{!Clearme}" reRender="fm"/>
            </apex:pageblockbuttons>
       
        
        
                    <apex:pageblocksection columns="1">
                        <apex:inputtext value="{!stud.LastName__c}"/>
                        <apex:inputtext value="{!stud.FirstName__c}"/>
                        <apex:inputtext value="{!stud.Phone__c}"/>
                        <apex:inputtext value="{!stud.City__c}"/>
                        <apex:inputtext value="{!stud.Email__c}"/>
                    </apex:pageblocksection>
        
                     <apex:pageblocksection columns="1" rendered="{!Student__c.size>0}">
                     <apex:pageblocktable value="{!Student__c}" var="a">
                         <apex:column value="{!a.LastName__c}"/>
                         <apex:column value="{!a.FirstName__c}"/>
                         <apex:column value="{!a.Phone__c}"/>
                         <apex:column value="{!a.City__c}"/>
                         <apex:column value="{!a.Email__c}"/>
                     </apex:pageblocktable>   
                     </apex:pageblocksection>
              
        </apex:pageblock>
    </apex:form>
</apex:page>
Hi all,
User-added image

its problem is, in after update, the fields of description__c, field__C nor updating.,

rest of first name, last name, required fields of updating.,

why?

anyone can help me.,

Thanks, 
Sriram.R
Create a field on Account Object Number of contacts  Write a trigger to create the number of contacts which are equal to the number which we will enter in the Number of Contacts field on the account object 

Eg:     if we enter No.of Contacts = 4, we need to create 4 contacts,     then if we are changing it from 4-5, then it should have only 5 contacts
Data Not Available

You do not have Edit access to one of the two records you are trying to merge. Please contact your administrator to get additional access or merge the two records
Click here to return to the previous page.
User-added image


Thanks,
Sriram.R
public class Soql_example_5 
{
    public string searchText    {set;get;}
    public string query            {set;get;}
    public List<Account> accounts        {set;get;}
    
    public void fetchData()
    {
      string query='select id, name, phone, industry from Account where name like \' % '+searchText+' % \' ';
        accounts =Database.query(query);
    }
}

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

<apex:page controller="Soql_example_5">
    <apex:form id="fm">
         
        <apex:inputText value="{!searchText}"/> 
        <apex:commandButton value="Go" action="{!fetchData}" reRender="fm"/><br/><br/>
 
     <apex:pageblock>
          <apex:pageBlockSection>
            <apex:pageBlockSectionitem>
        <apex:pageBlockTable value="{!accounts}" var="a" cellpadding="50" width="2000" rules="rows" border="frame" rendered="{!NOT(ISNULL(accounts))}">
            <apex:column value="{!a.name}" headervalue="Name"/>
            <apex:column value="{!a.phone}" headervalue="Phone"/>
            <apex:column value="{!a.industry}" headervalue="Industry"/>
        </apex:pageBlockTable>
        </apex:pageBlockSectionitem>
    </apex:pageBlockSection>
            </apex:pageblock>
    </apex:form>
</apex:page>
Hi all,
User-added image

its problem is, in after update, the fields of description__c, field__C nor updating.,

rest of first name, last name, required fields of updating.,

why?

anyone can help me.,

Thanks, 
Sriram.R
Create a field on Account Object Number of contacts  Write a trigger to create the number of contacts which are equal to the number which we will enter in the Number of Contacts field on the account object 

Eg:     if we enter No.of Contacts = 4, we need to create 4 contacts,     then if we are changing it from 4-5, then it should have only 5 contacts
Hi,

I receiving "Field is not writeable: OpportunityShare.OpportunityId" error for the below code.Can someone please help me to sort out the error?


trigger shareRecord on Opportunity (after insert,after update) {
    List<OpportunityShare> share=new List<OpportunityShare>();
    User u=[select id from User where alias='kshar'];
    for(Opportunity op:Trigger.New){
        if(op.amount>50000){
            OpportunityShare p=new OpportunityShare();
            p.OpportunityId=op.id;
            p.UserOrGroupId=u.id;
            p.OpportunityAccessLevel='Read';
            p.RowCause='Manual';
            share.add(p);
        }
    }
    insert share;
}
Hi Everyone,

I need capital info solution salesforce integration materials. if anyone is having any pdf doc. Please send me