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

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 6
    Replies
Error: Compile Error: Illegal assignment from String to Date at line 6 column 1

trigger studentdata on Student_Particluars__c (before insert,before update) {

for(Student_Particluars__c std :Trigger.New){
std.phone__c ='909090099';
std.descripition__c = 'gopal naik';
std.DOB__c = '5/5/2016';

}

}
trigger defaultaction on Account(before insert,before update){
for(account acc : trigger.new){
acc.Phone='24243';

}

}
what is the different b/w trigger_events and trigger context varaiables..................? with 1 example...

what is best pratices of trigger?

account to contact parent to chlid relationship is there.....so i want apex code along with vf page code to display total no of account and contacts in vf page........................? help the code
account to contact parent to chlid relationship is there.....so i want apex code along with vf page code to display total no of account and contacts in vf page........................? help the code
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;
}
1) How you will add an attachment from VF page? tell me the component names to achieve this functionality?
2) Security(OWD, Sharing Rules,Manual Sharing).
the differnce b/w   force.com and communitys............?
 Syntax for upsert & undelete trigger & Purpose undelete?
We have 3 objects Account, Contact, Opportunity.   In a VF page, we need to display the names of contact & Opportunity which are related to Account.
this is th error


list<contact>con = [select Id,Name form contact where name = 'sfdc informatic new'];
for(contact ct : con){
ct.Name = 'sfdc new informatic';
}
update con;
 
list<contact> coc=[select id,name from contact where name = ' bhanusfdc nayakudu' ];
for(contact ct : coc){
ct.name = 'bhanu start game';
    }
update coc;
1. types of pagelayouts?
2.type of validation rules?
3.data loader working function ?
In Lead  plz explain about Rating : hot ;cold;warm
it is about lead conversations.............

what will  happen once's lead  will conversed?

​when  we convert a lead where is will be by users or admin
 
it is about lead conversations.............

what will  happen once's lead  will conversed?

when  we convert a lead where is will be by users or admin
 
what is attribute ?

what is  components ?
 in vf page...........
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>


 
trigger defaultaction on Account(before insert,before update){
for(account acc : trigger.new){
acc.Phone='24243';

}

}
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