• .Net Api
  • NEWBIE
  • 5 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 10
    Replies

Hi ,

             I am using a method which gets the query string and the red marked line is not covered in the code coverage ,please let me know how to solve this issue and why it is not covered in the code coverage waiting for the immediate response .

 

Below is the code snippet

 

public Integer getPageNumber()
{
    String count;
   if ( ApexPages.currentPage().getParameters().get('page') != null)
    {
         count=ApexPages.currentPage().getParameters().get('page');
    }
    Integer iPageNumber=Integer.ValueOf(count);
    return iPageNumber;
}

 

Regards,

vasu

HI ,

         How to write the test cases for my below method and the test case should cover the 75% coverage ,how to do it  can please any one help me in this issue

 

public PageReference redirectLists()
{
    //This takes referece id

    String Key=getGuid();
    // this is used to create the object for redirection

    RedirectUrl objRedirectUrls = new RedirectUrl();  
  // This gets the key from the the class

    listUrl =  objRedirectUrls.getListUrl(Key);

   // This is is used to redirect the page

    pagereference MyPage=  new PageReference(listUrl );
    MyPage.setRedirect(true);
    return MyPage;
 }

 

 

Regards,

Kranthi

Dear support,

                              I am using contains method to compare the listnames when the listname having same name (i.e 1234 ,123456)   suppose if i selected the second one the first is coming as checked

 

 

below is my sample code

 

  for(Integer i=0; i<results.size();i++) {
                  for (Integer j = 0; j < listChecked.size(); j++) {
                     if(listChecked[j].glName.contains(results[i].lName)) {
                                            results[i].checked = true;
                    }
                  }
                }

 

Let me know if any one can help me 

 

 

Regards,

kranthi nagisetty

Hi ,

        I am getting problem in radio button selection by default all the radio buttons are loading with selected can you any one can help to resolve this issue .

 

Regards,

kranthi nagisetty

Hi ,

        Can ypu please send the sample code for http post in apex

I want Capture the username of sales force

 

please guide me

 

Regards

 

Praveen Gaddam

can u please tell me how to hide the apex:inputtext based on selectlist item values.

 

 

I am writing this code

var answer=document.getElementById("{!$Component.Ans1}");

alert(answer);

 

 

but it returns the null value.

 

Can u please help me in this issue.

 

 

 

 

 

 

HI,

         how to create a dropdownlist in apex and i want to get the values into it dynamically. please help me.

 

Regards,

kranthi nagisetty

HI ,

          I want to use the .net api to integrate into the sales force.com, i want to add the benchmark email functionality into it , so how can i approach this , i can do developing using .net ?? because i saw some pdf  documents in developer force.com most of them developed using apex ,i am new to this apex, i have only experience in .net technologies.please let me know how i can solve this problem

Hi ,

             I am using a method which gets the query string and the red marked line is not covered in the code coverage ,please let me know how to solve this issue and why it is not covered in the code coverage waiting for the immediate response .

 

Below is the code snippet

 

public Integer getPageNumber()
{
    String count;
   if ( ApexPages.currentPage().getParameters().get('page') != null)
    {
         count=ApexPages.currentPage().getParameters().get('page');
    }
    Integer iPageNumber=Integer.ValueOf(count);
    return iPageNumber;
}

 

Regards,

vasu

HI ,

         How to write the test cases for my below method and the test case should cover the 75% coverage ,how to do it  can please any one help me in this issue

 

public PageReference redirectLists()
{
    //This takes referece id

    String Key=getGuid();
    // this is used to create the object for redirection

    RedirectUrl objRedirectUrls = new RedirectUrl();  
  // This gets the key from the the class

    listUrl =  objRedirectUrls.getListUrl(Key);

   // This is is used to redirect the page

    pagereference MyPage=  new PageReference(listUrl );
    MyPage.setRedirect(true);
    return MyPage;
 }

 

 

Regards,

Kranthi

Hi ,

        Can ypu please send the sample code for http post in apex

HI,

         how to create a dropdownlist in apex and i want to get the values into it dynamically. please help me.

 

Regards,

kranthi nagisetty

Hi I am trying to integrate salesforce.com with Oracle Apps using BPEL. I have published my BPEL as a webservice in our test server and had created an apex class which calls this webservice. Later I am invoking this using an S-control button in Accounts tab.

But I am getting the following error when I invoke the button.

**
{faultcode:’soapenv”Client’, faultstring:’System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element ‘http://schemas.xmlsoap.org/soap/envelope/:Envelope’ but found ‘:html’

Class.wwwTrianzCom.Create_AccountPort.process: line 15, column 13
Class.AccountWrapper.CreateFunction: line 5, column 10
**

Please help me to figure out the problem.

Thank you, Aneesh