• bhanu challenge
  • NEWBIE
  • 170 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 6
    Replies
trigger ContactPhone on Account (Before update) 
{
List<Contact> listConForPhoneUpdate;

    for (Account acc : Trigger.New)
        {
        listConForPhoneUpdate = [Select Phone from Contact   where phone!=null and  AccountID =: acc.id];
        for(Contact con : listConForPhoneUpdate )
            con.Phone = acc.Phone;
        }
update listConForPhoneUpdate;
}
list<contact> coc=[select id,name from contact where name = ' bhanusfdc nayakudu' ];
for(contact ct : coc){
ct.name = 'bhanu start game';
    }
update coc;
what is different b/w components and attributes in vf page ...& action is component or attribute.............

plz answer it 
public class s1{
public List<Student_Particluars__c> std = [select Name,Amount_Paid__c,DOB__c,Email__c from Student_Particluars__c];
public List<Student_Particluars__c> getpro(){
return std;
}
}
..........................................-------------------------------------------------............................................................

<apex:page controller="s1">
<apex:form>
 <apex:pageBlock>
 <apex:pageBlockTable value="{!pro}" var="p">
 <apex:column value="{!p.Name}"/>
 <apex:column value="{!p. Amount_Paid__c}"/>
 <apex:column value="{!p.DOB__c}"/>
 <apex:column value="{!p.Email__c }"/>
   </apex:pageBlockTable>
   </apex:pageBlock>
</apex:form> 
</apex:page>


 
while am creating date-of-brith field in calendar years coming from 2015 to 2019......i want from 1980...can any plz help me