Pages

Saturday, December 10, 2016

Round Off Field Values in VF page

Suppose a field (Opportunity Amount field) value is 12.34 and you have to round off it to 1 decimal places on VF page, Then use below syntax:


<apex:page standardController="opportunity" >
<apex:outputText value="{0, number, ###,###.0}">
<apex:param value="{!opportunity.amount}"/>
</apex:outputText>

</apex:page>

Output on VF page will be 12.3

Note: This work perfectly for number ,percent, and currency fields.



Refer Below Links for Salesforce Interview Questions


32 comments:

  1. I just thought it may be an idea to post incase anyone else was having problems researching but I am a little unsure if I am allowed to put names and addresses on here. niche ralevant blogcomment

    ReplyDelete
  2. We are all here to provide you the best SEO agency in the world. We provide seo backlinks that even with 100% guaranteed the result. So, give us a chance to serve you and let your business thrive. niche relevant backlinks

    ReplyDelete
  3. This is only the data I am discovering all over the place. A debt of gratitude is in order for your website, I simply subscribe your online journal. This is a decent blog.. All Nofollow links

    ReplyDelete
  4. I will explain eight high quality methods of getting targeted SEO backlinks to your site in this two-part article. Seo backlinks

    ReplyDelete
  5. Extremely intriguing online journal. A lot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definitely inspired by this one. Recently felt that I would post and let you know. High Authority DA PA Service

    ReplyDelete
  6. Absolutely fantastic posting! Lots of useful information and inspiration, both of which we all need!Relay appreciate your work. OFF PAGE SEO

    ReplyDelete
  7. They will have all they require to guarantee business achievement. SEO Group Buy

    ReplyDelete
  8. Actually for the most part it is anything but a difficult work, yet doesn't infer that it's excessively simple. SEO Services

    ReplyDelete
  9. Your website is really cool and this is a great inspiring article. asuransi jiwa allianz

    ReplyDelete
  10. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. Seoleadgeneration.be

    ReplyDelete
  11. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. Leads genereren

    ReplyDelete
  12. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. SEO zoekmachine optimalisatie

    ReplyDelete
  13. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Leadgeneratie betekenis

    ReplyDelete
  14. Fantastic blog you have here. You’ll discover me looking at your stuff often. Saved! adult humor books

    ReplyDelete
  15. You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog. star wars cosplay

    ReplyDelete
  16. website SEO is often the first step in promoting their business and client services. For a small or mid-size business, website SEO helps promotional efforts, reach out to target audiences, and save significant amounts of money on promotional efforts. Best Guest Posting Sites

    ReplyDelete
  17. Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC. Blog Commenting backlinks

    ReplyDelete
  18. I am thankful to you for sharing this plethora of useful information. I found this resource utmost beneficial for me. Thanks a lot for hard work. ibmseo twitter

    ReplyDelete
  19. On the off chance that it's key to pretty much everybody, you can't easily overlook the significance of SEO as a focal component of your promoting system.
    https://www.sandeepmehta.co.in/affordable-seo-services-delhi/

    ReplyDelete
  20. Discovery Social Media has likewise fostered a web-based web 2.0 instructive stage called 'Social Media in 7 Minutes'.other

    ReplyDelete
  21. With so many SEO companies out there, it's hard to know what to know what Search Engine Optimisation (SEO) services to look for. Here are five key SEO services to look for when hiring an SEO company. https://sites.google.com/view/seoservicesindelhiindia

    ReplyDelete
  22. They are all around experienced and can fulfill the customers with the appropriate data and specialized realities. Their sound discussion assists the client with taking appropriate choice. Advertising for Medspas

    ReplyDelete
  23. Many businesses which are hoping to increase their online presence are hiring an SEO company or using SEO services well to gain every single benefit while achieving their goals.Although attempting to learn SEO yourself is a good idea as well as a tempting one, there are high chances you might implement SEO techniques wrongly because they need months and years of experience. web hosting cheap

    ReplyDelete