You need to sign in to do that
Don't have an account?
tulasiram ch
categories in custom labels
Can any one help me how to use CATEGORIES in CUSTOM LABELS...Tell me how it can be used in our code with example...I am learning salesforce...thank you
You can use Category in filter criteria when creating custom label list views. This will help to classified label for various funtionalities.
-Thanks,
TK
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Categories are a comma-separated list of categories for the label. This field can be used in filter criteria when creating custom label list views. Maximum of 255 characters.
In the below example let us see how we can access the custom label in the apex. Let's assume we have created a custom label of name category with a value "A Custom Label Value"
Visual Force Page: Apex Controller Page: Below is the output of the following.
Hope this helps.
Regards,
Nagendra.
.
In above screen shot, I am creating a list view which will show labels which belongs to 'Component' and 'Pages' categories. You can use multiple Categories separated by comma in list view filter like this.
-Thanks,
TK
Like
string value = label.customLabelName;
1. You can use Category in filter criteria when creating custom label list views.
2. Label value is being used in Code as below:
a. Apex Class: System.Label.<Label Name>
b. VF Page: {!$Label.<Label Name>}
-Thanks,
TK
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.