• amine7
  • NEWBIE
  • 30 Points
  • Member since 2011

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

Hello everybody,

 

is the "Use European date format" option available in the GUI version of the data loader also available in the command line version?

 

thanks in advance !

 

  • September 29, 2011
  • Like
  • 0

Hello,

 

I'm using dataloader 22.0 from the command line importing data from a CSV file , evrything works fine !!  except the date..

i think it's not the good format.. how can i fix that ?

  • September 29, 2011
  • Like
  • 0

Hello everybody , I really nead some help on how to create a test class in order to bring a Trigger over the prodution instance..

Here is it :


trigger monTrigger on Dossier_P_re__c(before update){
  
    List<Case> op= new  List<Case>();
   
    Set<Id> ChampReq = new Set<Id>();
   
    for(Dossier_P_re__c dos : Trigger.new)
    {
            ChampReq.add(dos.Id); // L'Id de l'objet Dossier_P_re__c dans le ticket Principal    
    }
                
    if(System.Trigger.isUpdate)
    {
        try
        {
        op=[select Dossier_P_re__c, Status,IsClosed from Case where Dossier_P_re__c In: ChampReq];
     
        }
        catch(Exception e){ System.debug('Exception' + e);
        }
    
         for(Dossier_P_re__c dosDeux : Trigger.new)
         {
            if(dosDeux.Statut__c =='Clos')
            {
                    for(Case cas : op)
                    {
                     cas.Status='Clos';
                     update(cas);
                                         
                    }    
                   
            }
               
       } 
     }                 
   
}

 

Really  need some help !  Thanks in advance

  • September 16, 2011
  • Like
  • 0

hello there, i'm facing a problem when triying to call a webservice from a visualforce page, i need some help pleaze

 

here is my visualforce page

 

<apex:page standardController="Order_Product__c" extensions="Weather">
   <apex:form >
      <apex:pageBlock id="out">
     
         <apex:pageBlockSection >
             <apex:panelGroup >
                <apex:pageBlockSection >   
                   <apex:outputLabel for="searchCityName">Search the City</apex:outputLabel>
                   <apex:outputLabel for="searchCountryName">Search the Country</apex:outputLabel>
                </apex:pageBlockSection>  
                  
                <apex:pageBlockSection >
                      <apex:inputText id="searchCityName" value="{!searchCityName}"/>
                      <apex:inputText id="searchCountryName" value="{!searchCountryName}"/>
                </apex:pageBlockSection>
                      <apex:commandButton value="Go!" action="{!getMeteo}" status="status" reRender="out"/>
                    
              </apex:panelGroup>
           
        </apex:pageBlockSection>
      
        
        <apex:actionStatus id="status" startText="requesting..."/>       
      
        <apex:pageBlockSection title="la meteo"  columns="1">
        <apex:page standardController="Order_Product__c" extensions="Weather" id="out">
        <apex:outputText >{!meteo}</apex:outputText>
       
        </apex:page>
         
          
        </apex:pageBlockSection>
        </apex:pageBlock>  
     
   </apex:form>
</apex:page>

 

the webservice

//Generated by wsdl2apex

public class wwwWebservicexNet {
    public class GetWeather_element {
        public String CityName;
        public String CountryName;
        private String[] CityName_type_info = new String[]{'CityName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] CountryName_type_info = new String[]{'CountryName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'CityName','CountryName'};
    }
    public class GetCitiesByCountry_element {
        public String CountryName;
        private String[] CountryName_type_info = new String[]{'CountryName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'CountryName'};
    }
    public class GlobalWeatherSoap {
        public String endpoint_x = 'http://www.webservicex.com/globalweather.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://www.webserviceX.NET', 'wwwWebservicexNet'};
        public String GetCitiesByCountry(String CountryName) {
            wwwWebservicexNet.GetCitiesByCountry_element request_x = new wwwWebservicexNet.GetCitiesByCountry_element();
            wwwWebservicexNet.GetCitiesByCountryResponse_element response_x;
            request_x.CountryName = CountryName;
            Map<String, wwwWebservicexNet.GetCitiesByCountryResponse_element> response_map_x = new Map<String, wwwWebservicexNet.GetCitiesByCountryResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://www.webserviceX.NET/GetCitiesByCountry',
              'http://www.webserviceX.NET',
              'GetCitiesByCountry',
              'http://www.webserviceX.NET',
              'GetCitiesByCountryResponse',
              'wwwWebservicexNet.GetCitiesByCountryResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.GetCitiesByCountryResult;
        }
        public String GetWeather(String CityName,String CountryName) {
            wwwWebservicexNet.GetWeather_element request_x = new wwwWebservicexNet.GetWeather_element();
            wwwWebservicexNet.GetWeatherResponse_element response_x;
            request_x.CityName = CityName;
            request_x.CountryName = CountryName;
            Map<String, wwwWebservicexNet.GetWeatherResponse_element> response_map_x = new Map<String, wwwWebservicexNet.GetWeatherResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://www.webserviceX.NET/GetWeather',
              'http://www.webserviceX.NET',
              'GetWeather',
              'http://www.webserviceX.NET',
              'GetWeatherResponse',
              'wwwWebservicexNet.GetWeatherResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.GetWeatherResult;
        }
    }
    public class GetWeatherResponse_element {
        public String GetWeatherResult;
        private String[] GetWeatherResult_type_info = new String[]{'GetWeatherResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'GetWeatherResult'};
    }
    public class GetCitiesByCountryResponse_element {
        public String GetCitiesByCountryResult;
        private String[] GetCitiesByCountryResult_type_info = new String[]{'GetCitiesByCountryResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'GetCitiesByCountryResult'};
    }
}

my controller

 

public class Weather {

private final Order_Product__c  OrderProduct;
String searchCityName;
String searchCountryName;

Public Weather (ApexPages.StandardController stdController){
    this.OrderProduct= (Order_Product__c)stdController.getRecord();
}
public void setSearchCityName(String s) {
      
   }
public void setSearchCountryName(String d) {
      
   }
public String getSearchCityName() {
        searchCityName='Entrez la Ville';
      return searchCityName;
   }
public String getSearchCountryName() {
      searchCountryName='Entrez le Pays';
      return searchCountryName;
   }
String status ='Success';
public void setMeteo(){}
public string getMeteo(){
 
try{
String status='success';
wwwWebservicexNet.GlobalWeatherSoap stub = new wwwWebservicexNet.GlobalWeatherSoap();
stub.timeout_x = 110000;
String weather= stub.GetWeather( searchCityName,searchCountryName);

system.debug('debugging ::'+ String.valueOf(weather));
String meteo= String.valueOf(weather);
return meteo;
}catch(exception e){ Status = 'FAILURE'+e;}return status;

}

}

thanks in advance ...

 

  • August 18, 2011
  • Like
  • 0

Hello everybody,

 

is the "Use European date format" option available in the GUI version of the data loader also available in the command line version?

 

thanks in advance !

 

  • September 29, 2011
  • Like
  • 0

Hello,

 

I'm using dataloader 22.0 from the command line importing data from a CSV file , evrything works fine !!  except the date..

i think it's not the good format.. how can i fix that ?

  • September 29, 2011
  • Like
  • 0

Hello everybody , I really nead some help on how to create a test class in order to bring a Trigger over the prodution instance..

Here is it :


trigger monTrigger on Dossier_P_re__c(before update){
  
    List<Case> op= new  List<Case>();
   
    Set<Id> ChampReq = new Set<Id>();
   
    for(Dossier_P_re__c dos : Trigger.new)
    {
            ChampReq.add(dos.Id); // L'Id de l'objet Dossier_P_re__c dans le ticket Principal    
    }
                
    if(System.Trigger.isUpdate)
    {
        try
        {
        op=[select Dossier_P_re__c, Status,IsClosed from Case where Dossier_P_re__c In: ChampReq];
     
        }
        catch(Exception e){ System.debug('Exception' + e);
        }
    
         for(Dossier_P_re__c dosDeux : Trigger.new)
         {
            if(dosDeux.Statut__c =='Clos')
            {
                    for(Case cas : op)
                    {
                     cas.Status='Clos';
                     update(cas);
                                         
                    }    
                   
            }
               
       } 
     }                 
   
}

 

Really  need some help !  Thanks in advance

  • September 16, 2011
  • Like
  • 0

hello there, i'm facing a problem when triying to call a webservice from a visualforce page, i need some help pleaze

 

here is my visualforce page

 

<apex:page standardController="Order_Product__c" extensions="Weather">
   <apex:form >
      <apex:pageBlock id="out">
     
         <apex:pageBlockSection >
             <apex:panelGroup >
                <apex:pageBlockSection >   
                   <apex:outputLabel for="searchCityName">Search the City</apex:outputLabel>
                   <apex:outputLabel for="searchCountryName">Search the Country</apex:outputLabel>
                </apex:pageBlockSection>  
                  
                <apex:pageBlockSection >
                      <apex:inputText id="searchCityName" value="{!searchCityName}"/>
                      <apex:inputText id="searchCountryName" value="{!searchCountryName}"/>
                </apex:pageBlockSection>
                      <apex:commandButton value="Go!" action="{!getMeteo}" status="status" reRender="out"/>
                    
              </apex:panelGroup>
           
        </apex:pageBlockSection>
      
        
        <apex:actionStatus id="status" startText="requesting..."/>       
      
        <apex:pageBlockSection title="la meteo"  columns="1">
        <apex:page standardController="Order_Product__c" extensions="Weather" id="out">
        <apex:outputText >{!meteo}</apex:outputText>
       
        </apex:page>
         
          
        </apex:pageBlockSection>
        </apex:pageBlock>  
     
   </apex:form>
</apex:page>

 

the webservice

//Generated by wsdl2apex

public class wwwWebservicexNet {
    public class GetWeather_element {
        public String CityName;
        public String CountryName;
        private String[] CityName_type_info = new String[]{'CityName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] CountryName_type_info = new String[]{'CountryName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'CityName','CountryName'};
    }
    public class GetCitiesByCountry_element {
        public String CountryName;
        private String[] CountryName_type_info = new String[]{'CountryName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'CountryName'};
    }
    public class GlobalWeatherSoap {
        public String endpoint_x = 'http://www.webservicex.com/globalweather.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://www.webserviceX.NET', 'wwwWebservicexNet'};
        public String GetCitiesByCountry(String CountryName) {
            wwwWebservicexNet.GetCitiesByCountry_element request_x = new wwwWebservicexNet.GetCitiesByCountry_element();
            wwwWebservicexNet.GetCitiesByCountryResponse_element response_x;
            request_x.CountryName = CountryName;
            Map<String, wwwWebservicexNet.GetCitiesByCountryResponse_element> response_map_x = new Map<String, wwwWebservicexNet.GetCitiesByCountryResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://www.webserviceX.NET/GetCitiesByCountry',
              'http://www.webserviceX.NET',
              'GetCitiesByCountry',
              'http://www.webserviceX.NET',
              'GetCitiesByCountryResponse',
              'wwwWebservicexNet.GetCitiesByCountryResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.GetCitiesByCountryResult;
        }
        public String GetWeather(String CityName,String CountryName) {
            wwwWebservicexNet.GetWeather_element request_x = new wwwWebservicexNet.GetWeather_element();
            wwwWebservicexNet.GetWeatherResponse_element response_x;
            request_x.CityName = CityName;
            request_x.CountryName = CountryName;
            Map<String, wwwWebservicexNet.GetWeatherResponse_element> response_map_x = new Map<String, wwwWebservicexNet.GetWeatherResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://www.webserviceX.NET/GetWeather',
              'http://www.webserviceX.NET',
              'GetWeather',
              'http://www.webserviceX.NET',
              'GetWeatherResponse',
              'wwwWebservicexNet.GetWeatherResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.GetWeatherResult;
        }
    }
    public class GetWeatherResponse_element {
        public String GetWeatherResult;
        private String[] GetWeatherResult_type_info = new String[]{'GetWeatherResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'GetWeatherResult'};
    }
    public class GetCitiesByCountryResponse_element {
        public String GetCitiesByCountryResult;
        private String[] GetCitiesByCountryResult_type_info = new String[]{'GetCitiesByCountryResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://www.webserviceX.NET','true','false'};
        private String[] field_order_type_info = new String[]{'GetCitiesByCountryResult'};
    }
}

my controller

 

public class Weather {

private final Order_Product__c  OrderProduct;
String searchCityName;
String searchCountryName;

Public Weather (ApexPages.StandardController stdController){
    this.OrderProduct= (Order_Product__c)stdController.getRecord();
}
public void setSearchCityName(String s) {
      
   }
public void setSearchCountryName(String d) {
      
   }
public String getSearchCityName() {
        searchCityName='Entrez la Ville';
      return searchCityName;
   }
public String getSearchCountryName() {
      searchCountryName='Entrez le Pays';
      return searchCountryName;
   }
String status ='Success';
public void setMeteo(){}
public string getMeteo(){
 
try{
String status='success';
wwwWebservicexNet.GlobalWeatherSoap stub = new wwwWebservicexNet.GlobalWeatherSoap();
stub.timeout_x = 110000;
String weather= stub.GetWeather( searchCityName,searchCountryName);

system.debug('debugging ::'+ String.valueOf(weather));
String meteo= String.valueOf(weather);
return meteo;
}catch(exception e){ Status = 'FAILURE'+e;}return status;

}

}

thanks in advance ...

 

  • August 18, 2011
  • Like
  • 0