• Mubarak
  • NEWBIE
  • 30 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 21
    Questions
  • 5
    Replies
Hi All,

I have completed my Admin 201(SP16) certification on last july.Should I have to write the maintanence for SP16?
If so where I can register for my maintanance exam.When i check in Web accessor i don't find any link to write my maintanance exam.


Thanks
Hi All,

Can anyone tell me what is the difference between Trigger Master,Trigger Helper,Handler Class and Trigger Factory class.

Thanks
 
Hi all,
I am planned to write DEV 401 exam,but after the certification changes announced by salesforce i am getting little confusion.

1.Which is the basic certification.
2.If App bulider certification is basic means,then questions are same as DEV 401 or different.
3.What are the prerequisite for Platform develper 1 exam.


Thanks
Hi all,

How to retrive the metadata for objects and fields???

Thanks
  • September 09, 2015
  • Like
  • 0
Hi all,
How to deploy the Metadata using Workbench or Force.com IDE.
I am having excel file of metadata which consist of metadata of profile permisson of all objects,
I need to redeploy into the organization.How can achieved this???
Whenever i tried ,it throws error Package.xml not found.

Thanks
  • September 07, 2015
  • Like
  • 0
Hi all,

How to include private constructor in test class for getting better code coverage.

Thanks

 
Hi all,

Clone is a standard button or Custom button.If it is custom button can any one provide me code behind the clone button for cloning particular records.

thanks
Hi all.
How to get child records of particular record.
I am having one search bar ,if i enter any record and click getChildRecord,it will display the child records of only the particular records.
VFPages...
<apex:page StandardController="Account" extensions="getchildRecords">
  <apex:form >
  <apex:pageBlock title="Child Records of Account">
  Enter Account Name:
  <apex:inputText value="{!SearchString}" /><br></br><br></br>
  <apex:CommandButton value="Get Child Records" action="{!GetChildRecords}"/>
    </apex:pageBlock>
   
  </apex:form>
</apex:page>

Class...
public class getchildRecords {
Public string SearchString {get;set;}
Public List<Account> acc{get;set;}

    public getchildRecords(ApexPages.StandardController controller) {
    

    }
Public void GetchildRecords(){
SearchString=[Select Name,(Select Name,Email from Contacts) from Account limit 2];
acc=Database.Query(SearchString);

}
}

Here I want to get the child records for Account Records.
How to achieve this.


Thanks 
Test Class
@isTest
Public Class AddRowControllerTest{
Static testmethod void Addrow(){
List<Contact>con=new List<Contact>();
Contact c=new contact();
c.firstname='Test';
c.lastname='Test';
Con.add(c);
insert con;
System.AssertEquals(c.firstname,'Test');
System.AssertEquals(c.lastname,'Test');
system.test.startTest();
AddRowController arc=new AddRowController();
arc.AddRowController(con);
arc.AddRow(con);
System.test.stopTest();

}
}

Apex Class.
public class AddRowController {

Public Contact contact{get;set;}
Public list<Contact> listContact{get;set;}

Public AddRowController(){
Contact contact=new Contact();
List<Contact>listContact=new list<Contact>();
listContact.add(contact);

}
Public  void AddRow(){
Contact con=new Contact();
listContact.add(con);
}

public PageReference saveContact() {
for(Integer i=0; i<listContact.size(); i++)
{
insert listContact;
}
return Page.Properties;
}
}
.In test class without 2 methods addRowController() and addRow() am getting 28%code coverage bt if i included these two methods am getting error like Method does not exist or incorrect signature.
Note:I dont have any other class with name "Test".

can anyone tell me what might be the reason for this error in test class.


Thanks
public class contactController {

public List<Contact> getContacts() {
return [SELECT Id,Name, Account.Name, Phone, Email
FROM Contact
ORDER BY LastModifiedDate DESC LIMIT 10];
}
public Contact getContact() {
Id id = System.currentPageReference().getParameters().get('id');
return id == null ? new Contact() :    [SELECT Id, Name
FROM Contact
WHERE Id = :id];
}
}

Hi all,
I wrote a test class for this class but the code coverage is only 10%,I tried so many times but it shows only 10%.can any one provide me test class for the above class.

Thanks
Hi all,
Is there any tool available for drawing architecture diagram for salesforce projects.
Additionally how to draw architecture diagram for any  salesforce diagram
Hi all,
Currently am working in callcenter project.My Mangement want to do reverse engg on the project ,because the location of the project has been changed.
Is anyone know standard format for doing reverse engg on salesforce projects.
if know plz let me know

Thanks
Hi all,

Where can i find the AJAX Toolkit in salesforce.
Whether i have to download form external source or else its already available tool in salesforce

Thanks
Hi all,

Who and all can change the record owner???

Thanks
Hi all
I am new to salesforce.Where can i find the real time scenarios for best practice.


Thanks
Hi all

I used jitterbit dataloader to upsert record in salesforce.When i compare with the jitterbit dataloader results with the force.com expolorer i am not getting the same result some of the records are missing in force.com explorer.

 
Hi all
How to get the number of records in  a particular date range.
For example i am having object called orderline.i want to get number of records were created during 12-jan-2014 to 12-dec-2014.
Currently am using force.com explorer so i need a query to get the expected result.

Thanks
Hi all,
 
Can any one knows what is the difference between Force.com explorer and dataloader?
Hi all
I worked with save and new functionality.Whn i click save and new button the record get saved but the field doesn't get blank.
I need after i click save and new button,the record need to get saved and field need to blank. so we can enter another record.

This is my code
<apex:page standardController="Bank__c" extensions="custom">
<apex:form >
<apex:pageblock id="pb" >
<apex:pageblocktable value="{!Bank__c}" var="ban" >
<apex:column headerValue="ifsc code">
<apex:inputfield value="{!ban.IFSC_Code__c}"/>
</apex:column>
</apex:pageblocktable>
</apex:pageblock>
<apex:commandButton action="{!savenew}" value="Save and New" rerender="pb"/>

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


===Controller===
public with sharing class custom {
public Bank__c ban { get; private set; }

private ApexPages.StandardController sController;  
    private String queryString;  
              public custom (ApexPages.StandardController controller) {  
        sController = controller;  
        ban = (Bank__c)controller.getRecord();  
 

    }  
 public Pagereference SaveNew()
 {
 
   upsert ban;

   string s = '/' + ('' + ban.get('Id')).subString(0, 3) + '/e?';
   return new Pagereference(s);
   
 
 }}
What's wrong with my code.????
note:
Record  get saved but field doesn't get blank
How to use wrapper class for adding dynamic row in Visualforce page??
Hi all,

How to retrive the metadata for objects and fields???

Thanks
  • September 09, 2015
  • Like
  • 0
Hi all,

Clone is a standard button or Custom button.If it is custom button can any one provide me code behind the clone button for cloning particular records.

thanks
Hi all.
How to get child records of particular record.
I am having one search bar ,if i enter any record and click getChildRecord,it will display the child records of only the particular records.
VFPages...
<apex:page StandardController="Account" extensions="getchildRecords">
  <apex:form >
  <apex:pageBlock title="Child Records of Account">
  Enter Account Name:
  <apex:inputText value="{!SearchString}" /><br></br><br></br>
  <apex:CommandButton value="Get Child Records" action="{!GetChildRecords}"/>
    </apex:pageBlock>
   
  </apex:form>
</apex:page>

Class...
public class getchildRecords {
Public string SearchString {get;set;}
Public List<Account> acc{get;set;}

    public getchildRecords(ApexPages.StandardController controller) {
    

    }
Public void GetchildRecords(){
SearchString=[Select Name,(Select Name,Email from Contacts) from Account limit 2];
acc=Database.Query(SearchString);

}
}

Here I want to get the child records for Account Records.
How to achieve this.


Thanks 
Test Class
@isTest
Public Class AddRowControllerTest{
Static testmethod void Addrow(){
List<Contact>con=new List<Contact>();
Contact c=new contact();
c.firstname='Test';
c.lastname='Test';
Con.add(c);
insert con;
System.AssertEquals(c.firstname,'Test');
System.AssertEquals(c.lastname,'Test');
system.test.startTest();
AddRowController arc=new AddRowController();
arc.AddRowController(con);
arc.AddRow(con);
System.test.stopTest();

}
}

Apex Class.
public class AddRowController {

Public Contact contact{get;set;}
Public list<Contact> listContact{get;set;}

Public AddRowController(){
Contact contact=new Contact();
List<Contact>listContact=new list<Contact>();
listContact.add(contact);

}
Public  void AddRow(){
Contact con=new Contact();
listContact.add(con);
}

public PageReference saveContact() {
for(Integer i=0; i<listContact.size(); i++)
{
insert listContact;
}
return Page.Properties;
}
}
.In test class without 2 methods addRowController() and addRow() am getting 28%code coverage bt if i included these two methods am getting error like Method does not exist or incorrect signature.
Note:I dont have any other class with name "Test".

can anyone tell me what might be the reason for this error in test class.


Thanks
Hi
Iam beginner to salesforce.I  want to add row dynamically to vf page when i clicked add row button.
this is my script...........
<apex:page standardController="Employee__c"  extensions="Cutomextension">
 <apex:form >
 <apex:pageBlock >
 <apex:pageBlockTable value="{!Employee__c}" var="emp">
 <apex:column headerValue=" Employee Name">
 <apex:inputField value="{!emp.name}"/>
 </apex:column>
  </apex:pageBlockTable>
 <apex:commandButton action="{!add}" value="Add Row"/>
 </apex:pageBlock>
 
 </apex:form>
</apex:page>
=====Controller=====
public with sharing class Cutomextension { 
    

public Employee__c emp {get; set;}
    public List<Employee__c> empList {get; set;}
    public static Integer addCount {get; set;}
  
    public Cutomextension(ApexPages.StandardController controller) {
    this.emp = (Employee__c)Controller.getRecord();
    empList = new List<employee__c>();
    }
   
    public void add() {
       empList.add(new employee__c());
     
     }}
When i clicked add row button ,new row doesnt get added.Can anyone tell me what is wrong with my code.