• Muruganand_Sforce
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 21
    Replies

Hi,

 

Apex  Data Loader Version 22.0 has many bugs which I experienced many times.

 

One of the Problems is It does not get open the CSV File in External Program.

 

But Apex Data Loader 21.0 is working fine.

 

 

Hi,

 

I can be able to insert  large data set using Bulk Data API using Java Web Service.

 

But now need to export data from sfdc into csv file.

 

Any Idea on how to do?

 

Thanks and Regards,

 

Muru

<script language="javascript" type="text/javascript" src="datetimepicker.js">
</script>
<script>
    function callDate(dateOfEntry){       
        NewCal('dateOfEntry','ddmmyyyy');
    }
</script>
<input id="dateOfEntry" type="text" size="25" onClick="callDate(dateOfEntry)" value="{!dateOfEntry}"/> OR <apex:inputtext id="dateOfEntry" onclick="callDate(dateOfEntry)" value="{!dateOfEntry}" />

 Above is my Visualforce Page.....

 

 

public String dateOfEntry {get; set;}

 

And it is my Apex class...

 

The Issue is I am not able to bind the Value which I got from JavaScript to Controller....

 

Please try this code and suggest....

Hi,

 

I want to get(populate) a datetime input value from visual force page to custom controller. I can't use inputfield since it is not filed in  any object.

 

suggest me...

 

 

Hi,

 

I want to list of Accounts based on Account Name. Obviously It is not possible with sort() function.Any short cut?

 

Inputs are welcome.

 

Regards,

Muruganand_Sforce

 Hi all,

 

I have a need to import/export bulk data using Apex Data Loader in bulk API Webservice (Linux Platform)...

 

Pls share your thoughts...

 

Regards,

 

Muruganand_Sforce

// Apex Class

public with sharing class mysimpleclass {

    Public void samplemethod1()
    {
        try
            {
            Integer a = 10;
            Integer b = a + 20;
            system.debug('The value of b is'+b);
            }
            catch (Exception e)
            {
            system.debug('Exception'+e);
            }
    }
}

 

//Test Class

@isTest
private class mysimpleclass_TestMethod // Name of the test class, Can be any name
{        
    static testmethod void mysimpleclass_TestMethod()   // Name of the test method. Must be the same as the class name
    {
        mysimpleclass testcls = new mysimpleclass();   // Initialize variable for original class
        testcls.samplemethod1();// Call Function1 of Original class
                                      
    }
}

 

Hi All,

 

I want to cover the Catch block in my Test Class in my  program.....I expreiment with this simple logic as how to the catch block.....

 

To Cover catch block, I need to create a run time error. For example, If I set Integer value to string,  I got error in compile time itself in Eclipse....

 

 

Is there any logic to attain this...Plz share your thoughts...

 

Regards,

 

Muruganand_Sforce

 

<script language="javascript" type="text/javascript" src="datetimepicker.js">
</script>
<script>
    function callDate(dateOfEntry){       
        NewCal('dateOfEntry','ddmmyyyy');
    }
</script>
<input id="dateOfEntry" type="text" size="25" onClick="callDate(dateOfEntry)" value="{!dateOfEntry}"/> OR <apex:inputtext id="dateOfEntry" onclick="callDate(dateOfEntry)" value="{!dateOfEntry}" />

 Above is my Visualforce Page.....

 

 

public String dateOfEntry {get; set;}

 

And it is my Apex class...

 

The Issue is I am not able to bind the Value which I got from JavaScript to Controller....

 

Please try this code and suggest....

Hi,

 

I want to get(populate) a datetime input value from visual force page to custom controller. I can't use inputfield since it is not filed in  any object.

 

suggest me...

 

 

Hi,

 

I want to list of Accounts based on Account Name. Obviously It is not possible with sort() function.Any short cut?

 

Inputs are welcome.

 

Regards,

Muruganand_Sforce

There are many Ideas and requirements to display image on native contact page, so this is what I have blogged :

 

http://forceguru.blogspot.com/2011/06/display-picture-in-contact.html

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

Hi,

 

I would like to know if we can sort a Map by Value. I have a Map like below.

 

Map<Id, Integer> accMap = new Map<Id, Integer>();

 

e.g I have values in the Map like below

 

accMap.put('Id1' , 2);

accMap.put('Id2' , 1);

accMap.put('Id3' , 4);

accMap.put('Id4' , 3);

accMap.put('Id5' , 5);

 

Now i want the Map to be sorted by the Integer value and my output should be like below

 

accMap.put('Id5' , 5);

accMap.put('Id3' , 4);

accMap.put('Id4' , 3);

accMap.put('Id1' , 2);

accMap.put('Id2' , 1);

 

 

Any help will be appriciated.

 

Thanks

 

Bramha

// Apex Class

public with sharing class mysimpleclass {

    Public void samplemethod1()
    {
        try
            {
            Integer a = 10;
            Integer b = a + 20;
            system.debug('The value of b is'+b);
            }
            catch (Exception e)
            {
            system.debug('Exception'+e);
            }
    }
}

 

//Test Class

@isTest
private class mysimpleclass_TestMethod // Name of the test class, Can be any name
{        
    static testmethod void mysimpleclass_TestMethod()   // Name of the test method. Must be the same as the class name
    {
        mysimpleclass testcls = new mysimpleclass();   // Initialize variable for original class
        testcls.samplemethod1();// Call Function1 of Original class
                                      
    }
}

 

Hi All,

 

I want to cover the Catch block in my Test Class in my  program.....I expreiment with this simple logic as how to the catch block.....

 

To Cover catch block, I need to create a run time error. For example, If I set Integer value to string,  I got error in compile time itself in Eclipse....

 

 

Is there any logic to attain this...Plz share your thoughts...

 

Regards,

 

Muruganand_Sforce

 

HI SFdeveloper,Can anyone explain about test code coverage for 75% required.what is the common steps to follow test code coverage for every apex class .Here i have code with 0% Test code coverage so how can i do 75% .So kindly let me know ASAP.

APEX class:

public class theController {

 

   String searchText;


   List<Lead> results;

 

   public String getSearchText()

{
      return searchText;


   }

   public void setSearchText(String s) {


      searchText = s;


   System.debug('SEARCHTEXT:'+searcHText);
   }

   public List<Lead> getResults() {
      
     return results;
   }

   public PageReference doSearch() {
    

    results = (List<Lead>)[FIND :searchText RETURNING Lead(Name, Email, Phone)][0];
           
    return null;
   }
}

 

Visualforce page:

<apex:page controller="theController" showHeader="true">
<apex:messages />
   <apex:form >
      <apex:pageBlock mode="edit" id="block">
         <apex:pageBlockSection >
            <apex:pageBlockSectionItem >
               <apex:outputLabel for="searchText">Search Text</apex:outputLabel>
               <apex:panelGroup >
                  <apex:inputText id="searchText" value="{!searchText}"/>
                  <apex:commandButton value="Go!" action="{!doSearch}"
                                      rerender="block" status="status"/>
               </apex:panelGroup>
            </apex:pageBlockSectionItem>
        </apex:pageBlockSection>
        <apex:actionStatus id="status" startText="requesting..."/>
        <apex:pageBlockSection title="Results" id="results" columns="1">
           <apex:pageBlockTable value="{!results}" var="l"
                               rendered="{!NOT(ISNULL(results))}">
              <apex:column value="{!l.name}"/>
              <apex:column value="{!l.email}"/>
              <apex:column value="{!l.phone}"/>
           </apex:pageBlockTable>
        </apex:pageBlockSection>
      </apex:pageBlock>
   </apex:form>
</apex:page>