• devfya
  • NEWBIE
  • 25 Points
  • Member since 2012

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

On the Products tab I see the standard sections: Home, Price Books, Product Views etc. Can I add a new section that shows my Visualforce page?

 

Thanks!

  • April 26, 2013
  • Like
  • 0

Please see my code:

public class MyCustomController {
  public String MyVal { get; set; }
  public void save() {
    ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.INFO, 'MyVal: '+MyVal));
  }
}

<apex:page controller="MyCustomController">
  <apex:messages />
  <apex:form >
    <apex:inputText id="textMyVal" value="{!MyVal}" />
    <apex:message for="textMyVal"/>
    <apex:commandButton action="{!save}" value="Save" />
  </apex:form>
</apex:page>

Question:
I know I can use <apex:messages> or <apex:pageMessages>.
But is there a way to display my message in <apex:message for="textMyVal"/>? Can <apex:message> be used without an sObject?

 

Thanks!

  • February 14, 2013
  • Like
  • 0

Hi all!

 

I see this XML in SoapException.Detail:

 

<sf:LoginFault xsi:type="sf:LoginFault" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
  <sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode>
  <sf:exceptionMessage>Invalid username, password, security token; or user locked out.</sf:exceptionMessage>
</sf:LoginFault>

 

How do I deserialize XML to the correct ApiFault subclass? Does anybody do it?

I get "<LoginFault xmlns='urn:fault.enterprise.soap.sforce.com'> was not expected." when I try to do this:

 

using (var reader = new StringReader(input))
{
    fault = (ApiFault)new XmlSerializer(typeof(ApiFault)).Deserialize(reader);
}

Thanks!

  • December 27, 2012
  • Like
  • 0

Hi all!

 

Is it possible to sign up to Salesforce (create an organization) using the API?

As far I understand, you must already have an organization to use any of the APIs. I just want to be sure.

 

Thanks!

  • December 08, 2012
  • Like
  • 0

Hi all, below is my code peice.

 

<apex:outputText value="{0, number, $###,###,###,###,###}" rendered="{!if(my field<>null,(if( my field< 0, '(' + text(abs(my field)) + ')',text(my field))),my field)}">

<apex:param value="{!my field}"/>

</apex:outputText>

 

if my field value is = -20 expected output:($20) but i am getting as -$20.

In my Test Env, if I delete an app will it delete all the Objects, VR, WF, AP ??

Can any one let me know.

 

Thanks.

  • April 25, 2013
  • Like
  • 0

Hi all!

 

I see this XML in SoapException.Detail:

 

<sf:LoginFault xsi:type="sf:LoginFault" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
  <sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode>
  <sf:exceptionMessage>Invalid username, password, security token; or user locked out.</sf:exceptionMessage>
</sf:LoginFault>

 

How do I deserialize XML to the correct ApiFault subclass? Does anybody do it?

I get "<LoginFault xmlns='urn:fault.enterprise.soap.sforce.com'> was not expected." when I try to do this:

 

using (var reader = new StringReader(input))
{
    fault = (ApiFault)new XmlSerializer(typeof(ApiFault)).Deserialize(reader);
}

Thanks!

  • December 27, 2012
  • Like
  • 0