• Stéphane DEMAISON
  • NEWBIE
  • 25 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi all,

we have activated 2 years ago Chatter answers in our Production org but now I have a problem when I would charge change sets, Chatter Answers Apex Classes are generating errors.
So we would desactivate Chatter Answers.

I try to delete all classes with Eclipse and created a new Force.com project connect with production org.
I put for each class, the value "Deleted" as status in xml file, but I have the message "File saved only locally not to server".
And the button to "Save all" is in grey (not available).
I have checked in "Preferences" if I'm working in "online" or "offline" but I haven't got the information in the menu "Force.com" of the project.

The version I use is : Kepler Service Release 2
Built id: 20140224-0627

Thanks in advance for your assistance.
 

Hi Experts,

From more than 1 year and half now, we have implemented a visualforce page on the Account object, (Google API) to display on Google maps the adress of the Account.
Custom fields are used (Adress, Zip Code, City & Country (picklist).
It works properly.
2 days ago, after opening an account file, an error message has been displayed (in french) "Petit problème... Une erreur s'est produite
Google Maps ne s'est pas chargé correctement sur cette page. Pour plus d'informations techniques sur cette erreur, veuillez consulter la console JavaScript".
The map is displayed about 3 seconds and then the error message replace the map.

Hereafter the code :
 <apex:page standardController="Account">

<head>
<script src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
 
$(document).ready(function() {
   
  var myOptions = {
    zoom: 15,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    mapTypeControl: false
  }
   
  var map;
  var marker;
  var geocoder = new google.maps.Geocoder();
  var address = "{!Account.Address_1__c}, " + "{!Account.City__c}, " + "{!Account.Zip_Code__c}, " + "{!Account.Country__c}";
  var infowindow = new google.maps.InfoWindow({
    content: "<b>{!Account.Name}</b><br>{!Account.Address_1__c}<br>{!Account.City__c}, {!Account.Zip_Code__c}<br>{!Account.Country__c}"
  });
 
  geocoder.geocode( { address: address}, function(results, status) {
    if (status == google.maps.GeocoderStatus.OK && results.length) {
      if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {
      
        //create map
        map = new google.maps.Map(document.getElementById("map"), myOptions);
       
        //center map
      
        map.setCenter(results[0].geometry.location);
      
        //create marker
        marker = new google.maps.Marker({
            position: results[0].geometry.location,
            map: map,
            title: "{!Account.Name}"
        });
        //add listeners
        google.maps.event.addListener(marker, 'click', function() {
          infowindow.open(map,marker);
        });
        google.maps.event.addListener(infowindow, 'closeclick', function() {
          map.setCenter(marker.getPosition());
        });
      }
    } else {
      $('#map').css({'height' : '15px'});
      $('#map').html("Oops! {!Account.Name}'s address could not be found, please make sure the address is correct.");
      resizeIframe();
    }
  });
  function resizeIframe() {
    var me = window.name;
    if (me) {
      var iframes = parent.document.getElementsByName(me);
      if (iframes && iframes.length == 1) {
        height = document.body.offsetHeight;
        iframes[0].style.height = height + "px";
      }
    }
  }
});
</script>
<style>
#map {
  font-family: Arial;
  font-size:12px;
  line-height:normal !important;
  height:400px;
  background:transparent;
}
</style>
</head>
<body>
<div id="map"></div>
</body>
</apex:page>

When I look in Javascript console it's indicated the day quota of 25000 map loading is outpassed.
It's very strange, I have disabled the visualforce component in the layout in our production org, and check on our Sandbox (1st connexion of the day) and I have the same message.

Thanks in advance for your assistance.

Best regards

Hello,
we would like to create quote line itemsfrom a CSV file (3 columns : productCode, Qty and Unit Price).
After creating a new quote, we would have a button to select the file and data to import.

Several objects are impacted : quote (id to retrieve), Products2 (product ID to retrieve) and PriceBook2 (right price book has to be selected).

How is it possible to do ?
Please advice and suggest me.


 

Hi Experts,

From more than 1 year and half now, we have implemented a visualforce page on the Account object, (Google API) to display on Google maps the adress of the Account.
Custom fields are used (Adress, Zip Code, City & Country (picklist).
It works properly.
2 days ago, after opening an account file, an error message has been displayed (in french) "Petit problème... Une erreur s'est produite
Google Maps ne s'est pas chargé correctement sur cette page. Pour plus d'informations techniques sur cette erreur, veuillez consulter la console JavaScript".
The map is displayed about 3 seconds and then the error message replace the map.

Hereafter the code :
 <apex:page standardController="Account">

<head>
<script src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
 
$(document).ready(function() {
   
  var myOptions = {
    zoom: 15,
    mapTypeId: google.maps.MapTypeId.ROADMAP,
    mapTypeControl: false
  }
   
  var map;
  var marker;
  var geocoder = new google.maps.Geocoder();
  var address = "{!Account.Address_1__c}, " + "{!Account.City__c}, " + "{!Account.Zip_Code__c}, " + "{!Account.Country__c}";
  var infowindow = new google.maps.InfoWindow({
    content: "<b>{!Account.Name}</b><br>{!Account.Address_1__c}<br>{!Account.City__c}, {!Account.Zip_Code__c}<br>{!Account.Country__c}"
  });
 
  geocoder.geocode( { address: address}, function(results, status) {
    if (status == google.maps.GeocoderStatus.OK && results.length) {
      if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {
      
        //create map
        map = new google.maps.Map(document.getElementById("map"), myOptions);
       
        //center map
      
        map.setCenter(results[0].geometry.location);
      
        //create marker
        marker = new google.maps.Marker({
            position: results[0].geometry.location,
            map: map,
            title: "{!Account.Name}"
        });
        //add listeners
        google.maps.event.addListener(marker, 'click', function() {
          infowindow.open(map,marker);
        });
        google.maps.event.addListener(infowindow, 'closeclick', function() {
          map.setCenter(marker.getPosition());
        });
      }
    } else {
      $('#map').css({'height' : '15px'});
      $('#map').html("Oops! {!Account.Name}'s address could not be found, please make sure the address is correct.");
      resizeIframe();
    }
  });
  function resizeIframe() {
    var me = window.name;
    if (me) {
      var iframes = parent.document.getElementsByName(me);
      if (iframes && iframes.length == 1) {
        height = document.body.offsetHeight;
        iframes[0].style.height = height + "px";
      }
    }
  }
});
</script>
<style>
#map {
  font-family: Arial;
  font-size:12px;
  line-height:normal !important;
  height:400px;
  background:transparent;
}
</style>
</head>
<body>
<div id="map"></div>
</body>
</apex:page>

When I look in Javascript console it's indicated the day quota of 25000 map loading is outpassed.
It's very strange, I have disabled the visualforce component in the layout in our production org, and check on our Sandbox (1st connexion of the day) and I have the same message.

Thanks in advance for your assistance.

Best regards

Hello,
we would like to create quote line itemsfrom a CSV file (3 columns : productCode, Qty and Unit Price).
After creating a new quote, we would have a button to select the file and data to import.

Several objects are impacted : quote (id to retrieve), Products2 (product ID to retrieve) and PriceBook2 (right price book has to be selected).

How is it possible to do ?
Please advice and suggest me.