• naveen kunuru
  • NEWBIE
  • 30 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 26
    Questions
  • 10
    Replies
hello lad will any one of u answer these question for me please thanks in advance

1.    With out using Record Type how will you display different pagelayouts .
    2.      Apex class order of Execution
3.trigger order of execution 
diff b/w force.com and salesforce.com
when do we use without sharing keyword.......(by default if a class is without any keyword then that class considered as a without sharing..) ,
hello lads how to  write a custome child to parent soql?
and custome parent to child soql? thanks
if a class  is with a keyword without sharing.what it going to happen 

what is known sharing rules wont be applicable to that class....

what else more then this ?
will it work in system mode r user mode?
what is diff b/w system mode and user mode
what is SDLC in salesforce (software development life cycle),

can any explain me when and how to use a VF component plz......if in a programatic way that will be great thnaks
i am trying to write a test calss for this calss
chkbox obj=new chkbox();
       
        obj.Nm1='naveen';
      
        system.assertEquals(obj.Nm1=obj.Nm2,obj.Nm1=obj.Nm2);
 how to test a boolean variable i mean checkbox
what tag do we got to check a checkbox is true r flase





public class chkbox {
 public PageReference Verify() {
     if (Clk==true)
       {
       Nm2 = Nm1;
       Ph2 = Ph1;
       }
      else
       {
       Nm2=' ';
       Ph2=' ';
       } 
       return null;
    }


    public Boolean Clk { get; set; }

    public String Ph2 { get; set; }

    public String Nm2 { get; set; }

    public String Ph1 { get; set; }

    public String Nm1 { get; set; }
a guy ask me which wsdl did u use in SOAP ,then i said partner wsdl ,
then he said y?
so lads ,when should we need to use partner wsdl
ans when should we use enterprise wsdl 
thanks
what are the integration API'S in saleforce,
i mean  like SOAP API
                  REST API
                  CHATTER  APL ......wat else
hey hi ,any one of u aware of this shit error ,if so plz tell me how to get out of this 

 The property List<System.SelectOption> moneyobj is referenced by Visualforce Page (picklist) in salesforce.com. Remove the usage and try again.
 i am trying to build a concept called picklist dependency ,
in soap integration how u will come to known whether u were connected to a valid client r not
and the data what ever u r getting is a valid data r not .how/
y u cant write a sosl in  a trigger
how can u call a diff controller from script 
wats is use of junction object ,why and when do we use it
hey hi to  everyone,is there any chance from u guys to post few interview question on integration please 
i looking for a 3.5 yr level type of questions ,thanks in advance
two user with same profile ,1 user can see only record owned by him and 2 user he is able to see all the records owned by him and 1 user (read only both  the records)....how this gone be achieved

1.without changing profile 
2.with changing profile
suppose a recurting app as a adminstration object which consist of v.f pages connected to it ,a person who have all cerdentials same as system admin if he login in to that object ,he couldnt see home page,,,why and how he can see home page ...
why do we use junction object
in a oppurtunity object a standard filed called stage (picklist) with a value lose...and a custom filed in same object itself
now when the stage ===lose;
i want custom filed as a required filed automatic  how u will acheive this
ANS:i said using trigger 
if this is correct ans any one of u can show me how the code looks

if it
I UPDATE THE PRICE FIELD AFTER UPDATE I SUPPOSE TO GET MAIL TO MY MAIL ID THE ONE I WROTE IN FINISH METHOD ...CAN ANY ONE HELP ME WATS WRONG WITH  MY FINISH CODE ......

global class emailWhenBatchUpdate Implements DataBase.Batchable<sObject> {
   global Database.QueryLocator start(DataBase.BatchableContext bc)     {
   string obj_query = 'Select Name,Price__c,Quantity__c from Bottle__c';
   return DataBase.getQueryLocator(obj_query);
   }  
   global void execute(DataBase.BatchableContext bc, List<Bottle__c> bottles)    {
   List<Bottle__c> bottleList = New List<Bottle__c>();  
   for(Bottle__c btl : bottles)
   {
    btl.Price__c = btl.Price__c + 100;
    bottleList.add(btl); 
   }
   update bottleList;    
}  
   global void finish(DataBase.BatchableContext bc)   {
   String userName = UserInfo.getUserName();
   String senderName = UserInfo.getFirstName()+ ' ' +UserInfo.getLastName();
   User usr = [Select Email From User Where Username = :userName LIMIT 1];
   String userEmail = usr.Email;      
   Messaging.SingleEmailMessage emailMsg = New Messaging.SingleEmailMessage();
   emailMsg.SetToAddresses(New String[] {userEmail});
   emailMsg.setSenderDisplayName(senderName);
   emailMsg.setSubject('Hello This is Mail From Salesforce After Batch Update');      
  
   } }
can any plz help wats wrong with this code ,i am trying to send mass email to contact here is the code....
<apex:page Controller="emailclass">
<apex:form >
<apex:commandButton value="sendmail" action="{!sendemail}"/>

</apex:form>


</apex:page>


public with sharing class emailclass {
public list<id> contactids;
public emailclass(){
contactids=new list<id>();
for(contact con:[select id from contact limit 10])

{
contactids.add(con.id);
}
}
  public PageReference sendemail() {
    Messaging.MassEmailMessage mail=new Messaging.MassEmailMessage();
    mail.settargetobjectids(contactids);
    Messaging.sendemail(new Messaging.MassEmailMessage[]{mail});
 
        return null;
        }
        

}



error ;;;;;;;;;;;;;;;;;;;;;;;;;

Visualforce ErrorHelp for this Page
System.EmailException: SendEmail failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Missing template id.: []
Error is in expression '{!sendemail}' in component <apex:commandButton> in page taskmassemail: Class.emailclass.sendemail: line 14, column 1
Class.emailclass.sendemail: line 14, column 1
hello ,i need a code whose o/p will be {1,1,2,3,5,8,13,21,34,55}
loop should rotate 10 times 
this scenario add two num every time when loop rotates;
plzzzzzzzz thanks


<apex:page Controller="emailclass">
<apex:form >
<apex:commandButton value="sendmail" action="{!sendemail}"/>
</apex:form>
</apex:page>

public with sharing class emailclass {
public list<id> contactids;
public emailclass(){
list<contact> con=[select id from contact limit 10];
for(integer i=0;i<10;i++)
{
contactids.add(con[i].id);
}
}
  public PageReference sendemail() {
    Messaging.MassEmailMessage mail=new Messaging.MassEmailMessage();
    mail.settargetobjectids(contactids);
    Message.sendemail(new Messaging.MassEmailMessage[]{mail});
 
        return null;
        }
        

}
 
what happen when you import data using data loader if reparent option is checked and non checked?
y u cant write a sosl in  a trigger
how can u call a diff controller from script 
hey hi to  everyone,is there any chance from u guys to post few interview question on integration please 
i looking for a 3.5 yr level type of questions ,thanks in advance
I UPDATE THE PRICE FIELD AFTER UPDATE I SUPPOSE TO GET MAIL TO MY MAIL ID THE ONE I WROTE IN FINISH METHOD ...CAN ANY ONE HELP ME WATS WRONG WITH  MY FINISH CODE ......

global class emailWhenBatchUpdate Implements DataBase.Batchable<sObject> {
   global Database.QueryLocator start(DataBase.BatchableContext bc)     {
   string obj_query = 'Select Name,Price__c,Quantity__c from Bottle__c';
   return DataBase.getQueryLocator(obj_query);
   }  
   global void execute(DataBase.BatchableContext bc, List<Bottle__c> bottles)    {
   List<Bottle__c> bottleList = New List<Bottle__c>();  
   for(Bottle__c btl : bottles)
   {
    btl.Price__c = btl.Price__c + 100;
    bottleList.add(btl); 
   }
   update bottleList;    
}  
   global void finish(DataBase.BatchableContext bc)   {
   String userName = UserInfo.getUserName();
   String senderName = UserInfo.getFirstName()+ ' ' +UserInfo.getLastName();
   User usr = [Select Email From User Where Username = :userName LIMIT 1];
   String userEmail = usr.Email;      
   Messaging.SingleEmailMessage emailMsg = New Messaging.SingleEmailMessage();
   emailMsg.SetToAddresses(New String[] {userEmail});
   emailMsg.setSenderDisplayName(senderName);
   emailMsg.setSubject('Hello This is Mail From Salesforce After Batch Update');      
  
   } }
hello ,i need a code whose o/p will be {1,1,2,3,5,8,13,21,34,55}
loop should rotate 10 times 
this scenario add two num every time when loop rotates;
plzzzzzzzz thanks


<apex:page Controller="emailclass">
<apex:form >
<apex:commandButton value="sendmail" action="{!sendemail}"/>
</apex:form>
</apex:page>

public with sharing class emailclass {
public list<id> contactids;
public emailclass(){
list<contact> con=[select id from contact limit 10];
for(integer i=0;i<10;i++)
{
contactids.add(con[i].id);
}
}
  public PageReference sendemail() {
    Messaging.MassEmailMessage mail=new Messaging.MassEmailMessage();
    mail.settargetobjectids(contactids);
    Message.sendemail(new Messaging.MassEmailMessage[]{mail});
 
        return null;
        }
        

}
 
custom validation to check field is not empty while saving, if field is empty display error message
here is my code  is this code is ok?please let me known any allternation code from u guys
<apex:page controller="task43" sidebar="true" showHeader="true">
<apex:form >
<apex:pageBlock title="homepage" id="block1">
<apex:pageBlockSection >
<apex:pagemessages >
</apex:pagemessages>
<apex:inputText value="{!f1}"/>
<apex:inputText value="{!f2}"/>
<apex:commandButton value="login" action="{!log}" reRender="block1"/>

</apex:pageBlockSection>




</apex:pageBlock>



</apex:form>
</apex:page>



public with sharing class task43 {

    public PageReference log() {
    if(f1==''||f1==null&&f2==''||f2==null){
    apexpages.addmessage(new apexpages.message(apexpages.severity.warning,'please enter'));
    }
    
        return null;
    
    }


    public String f2 { get; set; }

    public String f1 { get; set; }
}
hey hi thanks u all for giving the reply ,by the way lads i have just starting learning salesforce ,the thing is i am abit confuse were to palce this code i mean my vf and apex class is

<apex:page controller="dattim">
 <apex:form >
 <apex:pageBlock >
 <apex:pageBlockSection >
 dt<apex:outputText value="{!f1}"></apex:outputText>

 </apex:pageBlockSection>
 
 </apex:pageBlock>
 </apex:form>
 </apex:page>


apexclass;
public with sharing class dattim {

    public String f1 { get; set; }
}

i known its a shit coding ,will u guys please let me a known where to place the standard code,sing