-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
24Questions
-
6Replies
writing a trigger as date of brith DOB set default date ...how plz check my code
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 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';
}
}
- bhanu challenge
- July 27, 2016
- Like
- 0
- Continue reading or reply
plz help the test class of below code
trigger defaultaction on Account(before insert,before update){
for(account acc : trigger.new){
acc.Phone='24243';
}
}
for(account acc : trigger.new){
acc.Phone='24243';
}
}
- bhanu challenge
- July 27, 2016
- Like
- 1
- Continue reading or reply
plz clarifie this............
what is the different b/w trigger_events and trigger context varaiables..................? with 1 example...
what is best pratices of trigger?
what is best pratices of trigger?
- bhanu challenge
- July 27, 2016
- Like
- 0
- Continue reading or reply
aany one plzanswer it.....its imporatnt..
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
- bhanu challenge
- July 26, 2016
- Like
- 0
- Continue reading or reply
any one plzanswer it.....its imporatnt..
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
- bhanu challenge
- July 26, 2016
- Like
- 0
- Continue reading or reply
how to write TEST class for this trigger.plz check and help testclass 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;
}
{
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;
}
- bhanu challenge
- July 26, 2016
- Like
- 0
- Continue reading or reply
plz answer it....its important
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).
2) Security(OWD, Sharing Rules,Manual Sharing).
- bhanu challenge
- June 23, 2016
- Like
- 0
- Continue reading or reply
can any plz tel that difference.....
the differnce b/w force.com and communitys............?
- bhanu challenge
- June 23, 2016
- Like
- 0
- Continue reading or reply
- bhanu challenge
- June 21, 2016
- Like
- 0
- Continue reading or reply
would u plz tel how to write code in vf
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.
- bhanu challenge
- June 21, 2016
- Like
- 0
- Continue reading or reply
plz correct the code......here am updating the name in contact using soql.. getting 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;
- bhanu challenge
- June 21, 2016
- Like
- 0
- Continue reading or reply
plz check here contact name is what to update...
list<contact> coc=[select id,name from contact where name = ' bhanusfdc nayakudu' ];
for(contact ct : coc){
ct.name = 'bhanu start game';
}
update coc;
for(contact ct : coc){
ct.name = 'bhanu start game';
}
update coc;
- bhanu challenge
- June 21, 2016
- Like
- 0
- Continue reading or reply
plz answer it...........
1. types of pagelayouts?
2.type of validation rules?
3.data loader working function ?
2.type of validation rules?
3.data loader working function ?
- bhanu challenge
- June 17, 2016
- Like
- 0
- Continue reading or reply
- bhanu challenge
- June 16, 2016
- Like
- 0
- Continue reading or reply
plz answer my doubt
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 will happen once's lead will conversed?
when we convert a lead where is will be by users or admin
- bhanu challenge
- June 16, 2016
- Like
- 0
- Continue reading or reply
plz answer the question.............its urgent
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 will happen once's lead will conversed?
when we convert a lead where is will be by users or admin
- bhanu challenge
- June 16, 2016
- Like
- 0
- Continue reading or reply
can any of U plz define this..
what is attribute ?
what is components ?
in vf page...........
what is components ?
in vf page...........
- bhanu challenge
- June 15, 2016
- Like
- 0
- Continue reading or reply
can any plz answer it..........
what is different b/w components and attributes in vf page ...& action is component or attribute.............
plz answer it
plz answer it
- bhanu challenge
- June 15, 2016
- Like
- 0
- Continue reading or reply
plz check this ............... Error: Syntax error. Found 'p.'
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>
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>
- bhanu challenge
- June 14, 2016
- Like
- 0
- Continue reading or reply
- bhanu challenge
- June 14, 2016
- Like
- 0
- Continue reading or reply
plz help the test class of below code
trigger defaultaction on Account(before insert,before update){
for(account acc : trigger.new){
acc.Phone='24243';
}
}
for(account acc : trigger.new){
acc.Phone='24243';
}
}
- bhanu challenge
- July 27, 2016
- Like
- 1
- Continue reading or reply
how to write TEST class for this trigger.plz check and help testclass 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;
}
{
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;
}
- bhanu challenge
- July 26, 2016
- Like
- 0
- Continue reading or reply
plz check here contact name is what to update...
list<contact> coc=[select id,name from contact where name = ' bhanusfdc nayakudu' ];
for(contact ct : coc){
ct.name = 'bhanu start game';
}
update coc;
for(contact ct : coc){
ct.name = 'bhanu start game';
}
update coc;
- bhanu challenge
- June 21, 2016
- Like
- 0
- Continue reading or reply
can any plz answer it..........
what is different b/w components and attributes in vf page ...& action is component or attribute.............
plz answer it
plz answer it
- bhanu challenge
- June 15, 2016
- Like
- 0
- Continue reading or reply
plz check this ............... Error: Syntax error. Found 'p.'
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>
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>
- bhanu challenge
- June 14, 2016
- Like
- 0
- Continue reading or reply
plz find this
while am creating date-of-brith field in calendar years coming from 2015 to 2019......i want from 1980...can any plz help me
- bhanu challenge
- June 09, 2016
- Like
- 0
- Continue reading or reply