• DPac
  • NEWBIE
  • 5 Points
  • Member since 2006

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

I already have this version of eclipse in my mac:

Eclipse IDE for Java Developers

 

Version: Helios Service Release 2

 

 

When I tried to install force.com ide by adding a new site as described in the wiki, I get the following error:

 

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.salesforce.ide.api,24.0.0.201202291629.
MD5 hash is not as expected. Expected: 7251ab037ae632a5a9835c7c07210451 and found 77e46ace5965cf0623d63463f48d5394.
Problems downloading artifact: osgi.bundle,com.salesforce.ide.core,24.0.0.201202291629.
MD5 hash is not as expected. Expected: 44db36699ca7fdd38917fced4e63c3b3 and found 87fc7476cb4c76ea40b8539e2a8cc233.
Problems downloading artifact: osgi.bundle,com.salesforce.ide.documentation,24.0.0.201202291629.
MD5 hash is not as expected. Expected: 6d87eb2e76e7e19f7b709682e5272dfc and found 45ba7db9e0ef40bc5cc1a346cbac500f.

 

Any idea how to fix this?

 

 

  • March 19, 2012
  • Like
  • 0
I am trying to pass the date and time stamp to a webservice method in APEX code and the apex method returns a boolean.


My code snippet are as follows:

Apex Code:
================================================
package csaContractBatch{

    webService boolean csaWebServiceBatch(Datetime lastRunDate){
       System.debug('lastRunDate:'+lastRunDate);
       return true;
    }
================================================

Scontrol Code:
===========
<html>
<head>
    <script type="text/javascript" src="/js/functions.js"></script>
    <script src="/soap/ajax/8.0/connection.js"></script>
    <script src="/soap/ajax/8.0/apex.js" type="text/javascript"></script>
    <script language="javascript" src="https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js?browser=true" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    function initPage(){
      sforceClient.useCookies = true;
      sforceClient.init("{!API.Session_ID}", "{!API.Partner_Server_URL_80}", true);
      setTimeout("setup()",50);
    }
    function setup(){
       now = new Date();
       var apexCode = sforce.apex.execute("csaContractBatch","csaWebServiceBatch",{lastRunDate:now});
       alert(apexCode);
    }



    </script>
</head>

<body onload="javascript:initPage();">

</body>
</html>
========================================================================

When I click the link that calls this scontrol I get the following error in my browser debugger:
uncaught exception: {faultcode:'soapenv:Server', faultstring:, }

Can you please help.
  • February 05, 2007
  • Like
  • 0

I already have this version of eclipse in my mac:

Eclipse IDE for Java Developers

 

Version: Helios Service Release 2

 

 

When I tried to install force.com ide by adding a new site as described in the wiki, I get the following error:

 

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.salesforce.ide.api,24.0.0.201202291629.
MD5 hash is not as expected. Expected: 7251ab037ae632a5a9835c7c07210451 and found 77e46ace5965cf0623d63463f48d5394.
Problems downloading artifact: osgi.bundle,com.salesforce.ide.core,24.0.0.201202291629.
MD5 hash is not as expected. Expected: 44db36699ca7fdd38917fced4e63c3b3 and found 87fc7476cb4c76ea40b8539e2a8cc233.
Problems downloading artifact: osgi.bundle,com.salesforce.ide.documentation,24.0.0.201202291629.
MD5 hash is not as expected. Expected: 6d87eb2e76e7e19f7b709682e5272dfc and found 45ba7db9e0ef40bc5cc1a346cbac500f.

 

Any idea how to fix this?

 

 

  • March 19, 2012
  • Like
  • 0

Is it possible to return blob from controller to page?

 

Page:

 

<apex:page contentType="application/pdf" controller="VFBlobTest">{!pdf}</apex:page>

Controller:

 

 

public with sharing class VFBlobTest {
   public static Blob getPdf(){
      Blob result = SomeWebServiceCalloutThatReturnsBlob();
      return result
   }
}

The example I gave is what I would like to happen, but it won't work. It neither works with String.

 

Any work around?

 

 

servlet.FileDownload is not an option, because I can't store the file in the ORG. 

I am trying to pass the date and time stamp to a webservice method in APEX code and the apex method returns a boolean.


My code snippet are as follows:

Apex Code:
================================================
package csaContractBatch{

    webService boolean csaWebServiceBatch(Datetime lastRunDate){
       System.debug('lastRunDate:'+lastRunDate);
       return true;
    }
================================================

Scontrol Code:
===========
<html>
<head>
    <script type="text/javascript" src="/js/functions.js"></script>
    <script src="/soap/ajax/8.0/connection.js"></script>
    <script src="/soap/ajax/8.0/apex.js" type="text/javascript"></script>
    <script language="javascript" src="https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js?browser=true" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
    function initPage(){
      sforceClient.useCookies = true;
      sforceClient.init("{!API.Session_ID}", "{!API.Partner_Server_URL_80}", true);
      setTimeout("setup()",50);
    }
    function setup(){
       now = new Date();
       var apexCode = sforce.apex.execute("csaContractBatch","csaWebServiceBatch",{lastRunDate:now});
       alert(apexCode);
    }



    </script>
</head>

<body onload="javascript:initPage();">

</body>
</html>
========================================================================

When I click the link that calls this scontrol I get the following error in my browser debugger:
uncaught exception: {faultcode:'soapenv:Server', faultstring:, }

Can you please help.
  • February 05, 2007
  • Like
  • 0
Let me first say that this sounds like a great addition to SFDC. My question is where do I begin in testing this new language? I have access to a SFDC preview org. Am I missing something? Do I save it as an s-control? I have read through the documentation but seemed to have missed this starting point.
 
Thanks!