• RalphCallaway
  • NEWBIE
  • 19 Points
  • Member since 2013
  • Principal
  • Callaway Cloud Consulting

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 9
    Replies
I use trapdoor for a ton of different orgs. I've run into an issue now for two orgs where when I login nothing happens. I don't get an error message that the crendentials are expired and the browser doesn't open.

It's fairly rare, but it happens 100% of the time for these orgs. Login history in salesforce shows a successful login from Trapdoor.

I've tried deleting the credentails directly from Trapdoor, and also from KeyChain. But I still have the same issue after I add the credentials back to Trapdoor.

Anyone encountered this and have suggestions for a fix? Is there any logging done by trapdoor that can be used to troubleshoot?
I use trapdoor for a ton of different orgs. I've run into an issue now for two orgs where when I login nothing happens. I don't get an error message that the crendentials are expired and the browser doesn't open.

It's fairly rare, but it happens 100% of the time for these orgs. Login history in salesforce shows a successful login from Trapdoor.

I've tried deleting the credentails directly from Trapdoor, and also from KeyChain. But I still have the same issue after I add the credentials back to Trapdoor.

Anyone encountered this and have suggestions for a fix? Is there any logging done by trapdoor that can be used to troubleshoot?

Today we’re excited to announce the new Salesforce Developers Discussion Forums. We’ve listened to your feedback on how we can improve the forums.  With Chatter Answers, built on the Salesforce1 Platform, we were able to implement an entirely new experience, integrated with the rest of the Salesforce Developers site.  By the way, it’s also mobile-friendly.

We’ve migrated all the existing data, including user accounts. You can use the same Salesforce account you’ve always used to login right away.  You’ll also have a great new user profile page that will highlight your community activity.  Kudos have been replaced by “liking” a post instead and you’ll now be able to filter solved vs unsolved posts.

This is, of course, only the beginning  and because it’s built on the Salesforce1 Platform, we’re going to be able to bring you more features faster than ever before.  Be sure to share any feedback, ideas, or questions you have on this forum post.

Hats off to our development team who has been working tirelessly over the past few months to bring this new experience to our community. And thanks to each of you for helping to build one of the most vibrant and collaborative developer communities ever.
 

There's format in the String.method, however it's useless.

 

So that if want to add leading zero to a String in Apex controller, it must use a loop to add the leading zeros.

 

=== apex code ===

public class numberFormat {

Integer i = 1234;
String[] fmt1 = new String[]{'0, Number, $000000.00'};
String[] fmt2 = new String[]{'0', 'Number', '$000000.00'};
String[] fmt3 = new String[]{};

public String getNum1() {
return String.format(i.format(),fmt1);
}

public String getNum2() {
return String.format(i.format(),fmt2);
}

public String getNum3() {
return String.format(i.format(),fmt3);
}

public Integer getNum4() {
return i;
}

public Integer getNum5() {
return i;
}
}

 

=== Visualforce Page ===

<apex:page controller="numberFormat">
<apex:outputText value="{!num1}"/><br/>
<apex:outputText value="{!num2}"/><br/>
<apex:outputText value="{!num3}"/><br/>
<apex:outputText value="{!num4}"/><br/>
<apex:outputText value="{0, Number, $000000.00}">
<apex:param value="{!num5}" />
</apex:outputText>
</apex:page>

 

=== The output ===

1,234
1,234
1,234
1234 
$001234.00   

Ok, I know there are a lot of posts on this topic, and I am familiar with the two Visualforce techniques for doing this (using an outputField bound to an SObject currency field, and using the outputText value="{0,number,###,##0.00}" ). However, in my use case, I'm trying to display a currency value in the title of a pageBlock:

 

 

<apex:pageBlock title="Refund Amount: {!refundAmount}" >

 

I can't really use the outputText or outputField options here, so I think I need to do the formatting in my controller. The Apex documentation states that String.format(String, List<String>) works "in the same manner as apex:outputText." Has anyone actually used this method to format a Decimal value into a properly formatted currency String in Apex code?

  • November 17, 2010
  • Like
  • 0