• rajmul
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies

hi alll,

 

 

how to login to eclipse ide without security token..as security token is not visible in my developer edition(im system administrator and i have all permissions)...

 

i tried with various instructions given by few people..but not succeded...

need  exact solution..

 

 

or 

 

 

where can i find security token in developer edition.?

 

 

Thank you  all.

rajmul

 

  • November 20, 2013
  • Like
  • 0

                 

 

 

hi all i have created one class that dynamically fetch student records.when i created test class it is not covering all code.

 

 

 

 

 public with sharing class DynamicStudent  

{

 public String allstdnames { get; set; }

   public String selectedstudId { get; set; }

   public string Id{get;set;} 

  public student__c stdinfo{get;set;} 

  public list<SelectOption> getallstds()    {

 list<selectOption> options=new list<selectOption>(); 

   list<student__c> allstds=[select id,name from student__c limit 10]; 

   for(integer i=0;i<allstds.size();i++) 

   { 

   options.add(new selectOption(allstds[i].id,allstds[i].name)); 

   } 

   return options; 

   } 

    public void res() 

    {

     stdinfo=[select id,name from student__c where id=: selectedstudId ]; 

   }

 

-------------------------------------------------------

@isTest
private class testdynamicstudent{

static testMethod void myTest() {

DynamicStudent ds=new DynamicStudent();
list<selectoption> opt=new list<selectOption>();


opt.add(new selectoption('a0490000002khRH','select123'));

ds.getallstds();
ds.res();
}

 

}

 

 

how to pass the select option values in getallstds method

help  me

thanks  in advance

    

 

Hi all, Is it possible to send an email as a pdf to user? how?

  • April 15, 2013
  • Like
  • 0

hi   everybody..can anyone help me to write test class and how to pass values to variable objstdwrap?? here i want to send null values..

 

public class stdcont

{

stdWrapper objstdWrap = stdResults.get(stn);

if( obstdjWrap != NULL )
{    

 

some code logic  here..

}

}

 

thanks in advance.

regards

rajmul

 

  • January 31, 2013
  • Like
  • 0

 

Hi all, Is it possible to send an email as a pdf to user? how?

  • April 15, 2013
  • Like
  • 0

hi   everybody..can anyone help me to write test class and how to pass values to variable objstdwrap?? here i want to send null values..

 

public class stdcont

{

stdWrapper objstdWrap = stdResults.get(stn);

if( obstdjWrap != NULL )
{    

 

some code logic  here..

}

}

 

thanks in advance.

regards

rajmul

 

  • January 31, 2013
  • Like
  • 0