Salesforce Custom Label I have a requirement where I have to display some messages on my visualforce page. I have deal this with apex:pagemessages if some validation fails and on page with java-script but what will happen if in future I want to change the messages. I don't want to change my code for just some messages. To deal with such situation salesforce provides an very useful option "Custom Label". Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The values can be translated into any language Salesforce supports. Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user's native language. ...
Posts
Showing posts from September, 2014
- Get link
- X
- Other Apps
By
Puneet Mishra
-
MD5 Hash algorithm I came to know about a very interesting algorithm MD5 Hash algorithm which is very interesting and would like to share the same with you. While developing visualforce pages we sometime append the Id to url and use that Id in our controller to fetch the information related to that Id, but what will you do if someone change that Id parameter?? For example I have created a two custom object record and there Id appears for first record as " a0B9000000SFvWK " and for another " a0B9000000SFvWe ". You will see the Id look similar except last character. Let us suppose my url for visualforce page looks like : /apex/customPage?Id=a0B9000000SFvWK and if I change my url Id parameter from " a0B9000000SFvWK " to " a0B9000000SFvWe " then I can see the content from another record which is not good . To handle such scenario I use MD5 algorithm. MD5 stands for Message Digest algorithm 5 which is a cryptographic h...
- Get link
- X
- Other Apps
By
Puneet Mishra
-
Credit Card Hidden Information We use credit/debit card in our daily life. Number printed on our card play a significant role in our transaction but those numbers are not only use for making transaction but also have some hidden information which is helpful to identify if our card is valid or not. I came to know about such information. Numbers on our card is allocated in accordance with ISO/IEC 7812 1. The first digit of a credit card number is Major Industry Identifier. It identifies the industry within which the card is primarily to be used. MII digit Issuer category 0 ISO/TC 68 and other industry assignments 1 Airlines 2 ...