• Pavan Annaldas
  • NEWBIE
  • 20 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 6
    Replies
Hi,

I would like to know how we can disable quick create option for only one object. If Quick Create checkbox is disabled from ,Customize - > User interface,
Then Quick create is disabled for all the objects.


User-added image

 
How to override Contact Support button in Communities. Please find below screen shot

User-added image
I am create two contact records, one contact is having value in Phone field, another is not having value in Phone field. 

I treated one record as master(Which is not having value in phone field ) another as duplicate.

When Meged using apex, all child records associated with duplicate contact record, are reparented maste contact. But Phone value is not replaced with Duplicate contact record phone value.
I am trying to run my test and I keep getting this error message:

Failure Message:  "System.UnexpectedException: No
more than one executeBatch can be called from within a
testmethod. Please make sure the iterable returned from
your start method matches the batch size, resulting in
one executeBatch invocation.", Failure Stack Trace:
"External entry point"


But its giving 100% code coverage.

Thanks!

@isTest
public class TestBatchClass{
     static testmethod void BatchMethod(){
    try{
         List<case> csLst = new List<case>();
         Case cs;
         for (Integer i=0;i<10;i++) {
            cs = new case();
            cs.FirstName__c = 'abc'+i;
            cs.MiddleName__c = 'z1';
            cs.Lastname__c = 'TestCase123'+ i;
            cs.Status = 'New';
            cs.Company__c = 'Accenture1';
            cs.AssistantEmail__c = 'acc@gmail.com';
            cs.AssistantPhone__c = '123456'+i;
            cs.PrimaryNationality__c = 'India';
            cs.Birthdate__c = system.today();
            cs.PersonalEmail__c = 'acc1@gmail.com';
            cs.OtherEmail__c = 'acc2@gmail.com';
            cs.WorkEmail__c = 'acc3@gmail.com';
            cs.WorkPhone__c = '1234568'+i;
            cs.WorkMobile__c = '123456123'+i;
            cs.Mobile__c = '1234560000'+i;
            cs.HomePhone__c = '123456111'+i;
            cs.EventUniqueId__c = '123';
            cs.CampaignUniqueID__c = '456';  
            CS.IsProcessed__c = false ;
            csLst.add(cs);
           }
           insert csLst;
          Test.startTest(); 
          system.debug('*********insert************' +csLst);
          Batch_Case bc= new Batch_Case();                    /// Batch class name "Batch_Case"
          ID batchprocessid = Database.executeBatch(bc);
          //system.debug('****batchprocessid***'+batchprocessid);
          Test.stopTest();
    }
    catch(Exception e){
    }    
  }
}
Hello Folks,

I was facing an issue with my loading  of visualforce page. I have executed the javascript, from the javascript iam executing action method. After executing that action method, again my page is reloading but i just want to stop after execution of action method.

In the end of my action method the below code is executing correctly::
if(prdctsWithQuantity.size()>0){
              currentStep='2';  
 }

VF Page:
<script type="text/javascript">
        function showRelatedProducts(slctrcrd){
             var eterm=document.getElementById('{!$Component.frm:pb0:pblksctn:pbsitm:pfmly}').value;
              if(eterm=='')
              {
                  alert('You have to Select Product Family');
              }
              else{
                     callprdcts();
              }
    }
</script>
  <apex:actionFunction action="{!showSelectedProductFamilyRecords}" name="callprdcts" reRender="frm"/>

Actually it is showing the second step page, but again coming back to first step page. How to stop after the above logic execution..

Suggest me, Thanks in advance !!
Hi, 

I want to call static method dynamically.class or static method present in org should not checked when code is save .It should check at runtime.
we can check whether class present of not  dynamicallylike below:

 Type t = Type.forName('classname');

But I have not found way to execute staic method at run time.

If someone have idea please let me know.Help is really appreciated.

Thanks
Khillan 
18. Which of the follwoing features are available on Custom Objects
Choose any three
 
a) Assignment Rules
b) Sharing
c) Field History Tracking
d) Queues
 
 
Ans, a,b,c

is it right?
 
How to override Contact Support button in Communities. Please find below screen shot

User-added image
I am create two contact records, one contact is having value in Phone field, another is not having value in Phone field. 

I treated one record as master(Which is not having value in phone field ) another as duplicate.

When Meged using apex, all child records associated with duplicate contact record, are reparented maste contact. But Phone value is not replaced with Duplicate contact record phone value.