• JBirk
  • NEWBIE
  • 25 Points
  • Member since 2007

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

When using the vote component on a VF page, I'm getting an error that $StandardLabel.voteButton.promote is not defined.  Anyone know why this wouldn't be defined, since it's a StandardLabel and how to fix it?

  • September 23, 2010
  • Like
  • 0

Hey all - I've implemented OAuth in a dev org for the most part successfully.  However, with the same access token making the same callback to the OAuth login endpoint - I get an invalid signature response about every other time.  Same code doing the signature every time - any ideas as to why SFDC only accepts it occasionally?  

 

Are there any debug tools from the SFDC side to view the specific error found?  My login history only shows the "Failed Signature" error.

 

Thanks in advance.

  • July 02, 2010
  • Like
  • 0
I'm trying to make an API call to a PE org.  I can get the login to succeed using the CallOptions header, but any subsequent call responds with an "API_DISABLED_FOR_ORG" Error.

This is the header I am forming:

<se:Envelope xmlns:se='http://schemas.xmlsoap.org/soap/envelope/'><se:Header  ><SessionHeader xmlns='urn:partner.soap.sforce.com'><sessionId>{SESSIONID}</sessionId></SessionHeader><CallOptions se:mustUnderstand='0' xmlns='urn:partner.soap.sforce.com'><client >{CLIENTID}</client></CallOptions></se:Header>

Where, obviously, SESSIONID and CLIENTID are swapped out.  Is there something wrong with the format?  Or is this an org level issue?
  • August 13, 2008
  • Like
  • 0
Has anyone needed to implement this functionality?  I'm trying to calculate some distances based on lat/long and was porting code from ActionScript, but it all uses the stock sine/cosine functionality from the Math object - which Apex doesn't seem to have.

Thanks!
  • October 25, 2007
  • Like
  • 0

When using the vote component on a VF page, I'm getting an error that $StandardLabel.voteButton.promote is not defined.  Anyone know why this wouldn't be defined, since it's a StandardLabel and how to fix it?

  • September 23, 2010
  • Like
  • 0

will a custom component controller 's constructor get called even if the "Rendered" expression evaluates to "false"? Below is a visual force page that has two components. Only one of them is rendered depending on the user's Profile name:

 

<apex:page showHeader="true" sidebar="false" controller="SiteHeaderController" action="{!init}">
<apex:form >
User Profile:{!userProfile}<br/>
<apex:outputText value="SL Component" rendered="{!userProfile='Leader'}"/><br/>
<apex:outputText value="ZoneDiv Component" rendered="{!OR(userProfile='Division Manager',userProfile='Zone Manager')}"/><br/>
<apex:commandLink value="{!$Label.Earning_Opportunity}" action="{!showEarningOpportunity}" rerender="earningOpportunity" rendered="{!userProfile='Leader'}"/>
<apex:outputPanel id="earningOpportunity">
   	<apex:outputPanel rendered="{!showEarningOppty}">
    	<c:SalesLeaderEarningOpportunity rendered="{!userProfile='Leader'}"/>
    	<c:ZoneDivEarningOpportunity rendered="{!OR(userProfile='Division Manager',userProfile='Avon Zone Manager')}"/>
   	</apex:outputPanel>
</apex:outputPanel>                
</apex:form>

</apex:page>

 

ShowEarningOpportunity method is below:

 

public PageReference showEarningOpportunity(){
	this.showEarningOppty=true;
	return null;
}

 

 

When I executed the page and click on the "command link", both constructors are getting called. Am I missing something?

 

I have been connecting to sf.com to read data for more than a year from my app and suddenly tonight it has stopped working.

I have the following exception (I have deliberately removed the username and password, but I have checked that they are correct and refer to the latest security token. 

This was working fine erlier today and I have changed no code...

Method name is: login
'A997F86A-36E9-DDDC-EC6B-BBEE23101466' producer connected.
'A997F86A-36E9-DDDC-EC6B-BBEE23101466' producer sending message 'B89E5879-D7F7-E91E-2082-BBEE231054DD'
'direct_http_channel' channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
  body = "<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="urn:partner.soap.sforce.com"/><se:Body><login xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com"><username>simon.palmer@*****.com</username><password>*****</password></login></se:Body></se:Envelope>"
  clientId = (null)
  contentType = "text/xml; charset=UTF-8"
  destination = "DefaultHTTPS"
  headers = (Object)#1
  httpHeaders = (Object)#2
    Accept = "text/xml"
    SOAPAction = """"
    X-Salesforce-No-500-SC = "true"
  messageId = "B89E5879-D7F7-E91E-2082-BBEE231054DD"
  method = "POST"
  recordHeaders = false
  timestamp = 0
  timeToLive = 0
  url = "https://www.salesforce.com/services/Soap/u/11.0"
Method name is: login
*** Security Sandbox Violation ***
Connection to https://www.salesforce.com/services/Soap/u/11.0 halted - not permitted from https://localhost/pm_server/pm/pm-debug.swf
'A997F86A-36E9-DDDC-EC6B-BBEE23101466' producer acknowledge of 'B89E5879-D7F7-E91E-2082-BBEE231054DD'.
'A997F86A-36E9-DDDC-EC6B-BBEE23101466' producer fault for 'B89E5879-D7F7-E91E-2082-BBEE231054DD'.
Comunication Error : Channel.Security.Error : Security error accessing url : Destination: DefaultHTTPS
Error: Request for resource at https://www.salesforce.com/services/Soap/u/11.0 by requestor from https://localhost/pm_server/pm/pm-debug.swf is denied due to lack of policy file permissions.

What has changed?
hi,
 
Can you please tell me how can I call an external Web service from Force.com web service or  from  a Apex Code?
 
In one of our projects we have to invoke an external Web service from Force.com or from a apex code. Can you tell me the exact procedure or provide me some refrence guide to do this?
 
 
 
                                                                                                                                                    Regards,
                                                                                                                                                    Diti Mansata
  • August 13, 2008
  • Like
  • 0
I'm trying to make an API call to a PE org.  I can get the login to succeed using the CallOptions header, but any subsequent call responds with an "API_DISABLED_FOR_ORG" Error.

This is the header I am forming:

<se:Envelope xmlns:se='http://schemas.xmlsoap.org/soap/envelope/'><se:Header  ><SessionHeader xmlns='urn:partner.soap.sforce.com'><sessionId>{SESSIONID}</sessionId></SessionHeader><CallOptions se:mustUnderstand='0' xmlns='urn:partner.soap.sforce.com'><client >{CLIENTID}</client></CallOptions></se:Header>

Where, obviously, SESSIONID and CLIENTID are swapped out.  Is there something wrong with the format?  Or is this an org level issue?
  • August 13, 2008
  • Like
  • 0