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


39 comments:

  1. How beautifully all the feelings have been conveyed through writing.
    Resumeyard

    ReplyDelete
    Replies
    1. Great Article. Thank you for sharing! Really an awesome post for every one.

      IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      Delete
  2. 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
  3. Optimization of websites is a very important strategy to deliver the best results. SEO or search engine optimization using the best proven strategies helps to make business websites appealing to search engines. ralevant backlink

    ReplyDelete
  4. Research also shows that some SEO service providers operate on high volume basis. Such SEOs provide simple SEO services at very low monthly rates. Niche

    ReplyDelete
  5. If you want to use backlinks to your best interest, edu blogs are effective. Using this opportunity correctly, you will be able to increase traffic to your site. off page seo
    The tip that professionals use is the promise to find those which are 'do follows' and benefit SEO pages. niche ralevant blogcomment

    ReplyDelete
  6. 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
  7. 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
  8. I will explain eight high quality methods of getting targeted SEO backlinks to your site in this two-part article. Seo backlinks

    ReplyDelete
  9. 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
  10. Absolutely fantastic posting! Lots of useful information and inspiration, both of which we all need!Relay appreciate your work. OFF PAGE SEO

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

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

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

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

    ReplyDelete
  15. 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
  16. 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
  17. 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
  18. Fantastic blog you have here. You’ll discover me looking at your stuff often. Saved! adult humor books

    ReplyDelete
  19. 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
  20. 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
  21. Wow, What an Outstanding post. I found this too much informatics. It is what I was seeking for. I would like to recommend you that please keep sharing such type of info.If possible, Thanks. 200 dofollow blog comments

    ReplyDelete
  22. 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
  23. 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
  24. Niche blog commenting is one of the most powerful SEO strategies to drive natural and your niche related traffic on your site. We will search real blog sites according to your niche and publish your Web-link with unique content and ensure that they are individual and approved by site owners. Find relevant NICHE links? So you're in the right place and you do not have to look any further, we're here to help you. We offer a comment service on related blogs on real pages. All our compliments and sticky in 100% of exclusive domains. Without a doubt, Google estimates the links just because they are measurable. Nofollow Backlinks

    ReplyDelete
  25. Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. Kanada Visum

    ReplyDelete
  26. Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. indian visa application

    ReplyDelete