• arunatasc
  • NEWBIE
  • 0 Points
  • Member since 2011

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

This is the scheduler we have:

 

global class ScheduleImportData implements Schedulable {
   
    global void execute(SchedulableContext context) {
       ImportExcelWebservice.getExcelDetails();
    }

}

 

 

We need to write test class.  How can we write we need to do this by today end!

public class tempuriOrgAddClient28 {
    public class HelloWorld_element {
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
    public class HelloWorldResponse_element {
        public String HelloWorldResult;
        private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'HelloWorldResult'};
    }
    public class AddClientsResponse_element {
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
    public class AddClients_element {
        public String ClientName;
        public String ClientId;
        private String[] ClientName_type_info = new String[]{'ClientName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] ClientId_type_info = new String[]{'ClientId','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'ClientName','ClientId'};
    }
    public class AddClientSoap {
        public String endpoint_x = 'http://184.168.20.92:1025/AddClient.asmx';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
        private String[] ns_map_type_info = new String[]{'http://tempuri.org/', 'tempuriOrgAddClient28'};
        public String HelloWorld() {
            tempuriOrgAddClient28.HelloWorld_element request_x = new tempuriOrgAddClient28.HelloWorld_element();
            tempuriOrgAddClient28.HelloWorldResponse_element response_x;
            Map<String, tempuriOrgAddClient28.HelloWorldResponse_element> response_map_x = new Map<String, tempuriOrgAddClient28.HelloWorldResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/HelloWorld',
              'http://tempuri.org/',
              'HelloWorld',
              'http://tempuri.org/',
              'HelloWorldResponse',
              'tempuriOrgAddClient28.HelloWorldResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.HelloWorldResult;
        }

Hi salesforce,

 

We are writing test classes.  In our classes, we are using a global class and its methods.

Global Class is "X" and its variables are like "isBlank", etc...

 

How to pass values in test class for these to work?

 

The class contains like this

if (X.isBlank(timeZone))
            {
                X.showError('Time Zone is required.');
                return null;
            }

 

and we are having "timeZone" variable in class which holds a picklist.

 

Please let me know how to pass it.

Hi guys,

here we have a requirement,

we have four record types,

after saving a record with any record type, we need to get clone from the saved record and this cloned record should be put/assigned with a particular RecordType Id

in short, any record saved should be cloned and the cloned one to be assigned with a specific record type.

 

How to do this!

We need to show a multi-picklist on visual force Page.   The lines to be visible had put as 10.  But it is showing only single line.

So, we increased the height of the input filed, then, the buttons (right arrow, left arrow) are being multiplied on the screen. 

Here im putting the image:

 

 


        <apex:pageblocksection title="Prodcut Interest" id="new3">
             <apex:pageBlockSectionItem dataStyle="height:200px;">
               <apex:outputLabel for="Product_Interest" value="Product Interest" styleClass="labels" style="height:100px;"/>
               <apex:inputField value="{!cont.Product_Interest__c}" id="Product_Interest" style="height:80px;"/>
            </apex:pageBlockSectionItem>
        </apex:pageblocksection>

Multip picklist with height

 

Please let me know any solution.

output text is displaying html tags instead of normal data given in a textarea field on rendered PDF page. Please reply me with solution if anyone is having! we are working on a project and only this is pending i will be gratefull to you Thank you in advance Your's Chandra Kanth

This is the scheduler we have:

 

global class ScheduleImportData implements Schedulable {
   
    global void execute(SchedulableContext context) {
       ImportExcelWebservice.getExcelDetails();
    }

}

 

 

We need to write test class.  How can we write we need to do this by today end!

We need to show a multi-picklist on visual force Page.   The lines to be visible had put as 10.  But it is showing only single line.

So, we increased the height of the input filed, then, the buttons (right arrow, left arrow) are being multiplied on the screen. 

Here im putting the image:

 

 


        <apex:pageblocksection title="Prodcut Interest" id="new3">
             <apex:pageBlockSectionItem dataStyle="height:200px;">
               <apex:outputLabel for="Product_Interest" value="Product Interest" styleClass="labels" style="height:100px;"/>
               <apex:inputField value="{!cont.Product_Interest__c}" id="Product_Interest" style="height:80px;"/>
            </apex:pageBlockSectionItem>
        </apex:pageblocksection>

Multip picklist with height

 

Please let me know any solution.

output text is displaying html tags instead of normal data given in a textarea field on rendered PDF page. Please reply me with solution if anyone is having! we are working on a project and only this is pending i will be gratefull to you Thank you in advance Your's Chandra Kanth