• zchen
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 6
    Replies
It seems a very simple thing to do, but  I still didn' t figure it out.


I'm using eclipse (copy and paste code from dev  to production salesforce).
Everything works well,
I found a small problem in one of my trigger and want to modify it.
But Iuse eclipse to update this trigger, only save this trigger locally.

Any Ideas?

Please help
  • April 09, 2008
  • Like
  • 0
I read "Buiding a google calendar Mash-up with force." and installed that package.
at Security Controls ==> Remote Proxy Settings
 
var scontrol_url = window.location.href;
window.location.href =
"https://www.google.com/accounts/AuthSubRequest?" +
"next=" + escape( scontrol_url ) +
"&scope=https%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F&session=1&secure=0";

This part seems not working

After login my google account, page returned the following message.

The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:

Does anybody have the same problem?

Please help. thanks.




Message Edited by zchen on 04-04-2008 10:06 AM
  • April 04, 2008
  • Like
  • 0
I have some Apex code runing on developer edition account,
It seems while loop has limitations or memory limitations.
I was wondering if this only happens on developer account.

or I was wrong?

Thanks.


Message Edited by zchen on 03-26-2008 12:12 PM
  • March 26, 2008
  • Like
  • 0
I'm writing a bunch of date logic and haven't been able to get the daysInMonth and isLeapYear methods to work.  When I go to save in Eclipse, I get "Method does not exist or incorrect signature". 
 
My basic code looks like:
 

Date startDate=oli.Project_Start_Date__c;

Integer startYear=startDate.year();

if (isLeapYear(startYear))

dostuff...;

Any ideas?

It seems a very simple thing to do, but  I still didn' t figure it out.


I'm using eclipse (copy and paste code from dev  to production salesforce).
Everything works well,
I found a small problem in one of my trigger and want to modify it.
But Iuse eclipse to update this trigger, only save this trigger locally.

Any Ideas?

Please help
  • April 09, 2008
  • Like
  • 0
I read "Buiding a google calendar Mash-up with force." and installed that package.
at Security Controls ==> Remote Proxy Settings
 
var scontrol_url = window.location.href;
window.location.href =
"https://www.google.com/accounts/AuthSubRequest?" +
"next=" + escape( scontrol_url ) +
"&scope=https%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F&session=1&secure=0";

This part seems not working

After login my google account, page returned the following message.

The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:

Does anybody have the same problem?

Please help. thanks.




Message Edited by zchen on 04-04-2008 10:06 AM
  • April 04, 2008
  • Like
  • 0
I have some Apex code runing on developer edition account,
It seems while loop has limitations or memory limitations.
I was wondering if this only happens on developer account.

or I was wrong?

Thanks.


Message Edited by zchen on 03-26-2008 12:12 PM
  • March 26, 2008
  • Like
  • 0
I created a trigger and class in by Sandbox and deployed them to production. Now, I would like to drop the class and trigger in production but I cannot do so. I have attempted using the Apex and Force.com toolkits. The best I have been able to do is comment out the code so they do nothing and then redeploy.

Here's the message from the Apex Toolkit log:
DEBUG [2008-01-22 09:50:38,490 {HH:mm:ss}] (ApexArtifactService.java:compileTestSave:330) - Delete [1] Apex Triggers
 INFO [2008-01-22 09:50:39,787 {HH:mm:ss}] (ApexArtifactService.java:compileTestSave:343) - Compile/save/delete problem was [Test coverage of selected Apex Class and Trigger is 0%, at least 75% test coverage is required]
DEBUG [2008-01-22 09:50:39,787 {HH:mm:ss}] (Markers.java:addWarningMarker:143) - Add warning marker to 'Shea Production'
DEBUG [2008-01-22 09:50:39,818 {HH:mm:ss}] (SalesforceToolkitOnlineBuilder.java:handleDeleteResult:308) - Successful delete of ApexTrigger 'null'
DEBUG [2008-01-22 09:50:39,818 {HH:mm:ss}] (SalesforceToolkitOnlineBuilder.java:handleLocalDeletes:392) - Locally delete file 'trgRentStepChange.tgr'

And from the Force.com log (Not showing full stack track for error... let me know if you need it):

ERROR [2008-01-22 09:39:09,325 {HH:mm:ss}] (RefactorService.java:performRemoteDelete:664) - Unable to perform server delete
com.salesforce.toolkit.remote.ToolkitConnectionException: java.lang.RuntimeException: Failed deployment: UNKNOWN_EXCEPTION msg:null: Cannot complete this operation. Cannot delete classes/triggers in production.  Use compileAndTest verb to delete. : null

Thanks,
Mike