You need to sign in to do that
Don't have an account?
Mayank Agarwal 5
Object label name from strings?
Hello,
I have a custom object 'Jobs__c' which contains a picklist field 'Level__c' which containsapi namesof objects as: 'Account', 'Contact', 'Position__c','Applicants__c', 'Skills_sets__c'.
I want to obtain the object label names based on the 'Level__c' values and used them in custom piclist on Visualforce Page.
Please suggest a way to accomplish this.
Thanks,
Mayank
I have a custom object 'Jobs__c' which contains a picklist field 'Level__c' which containsapi namesof objects as: 'Account', 'Contact', 'Position__c','Applicants__c', 'Skills_sets__c'.
I want to obtain the object label names based on the 'Level__c' values and used them in custom piclist on Visualforce Page.
Please suggest a way to accomplish this.
Thanks,
Mayank
You can refere below code:
now you can use objLabelName iside you VF page.
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal
All Answers
You can refere below code:
now you can use objLabelName iside you VF page.
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal
Please go through the below link and read properly you will full idea about describe call in salesforce which help you a lot
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_describeSObject.htm
Thanks for the response.
It helps me a lot.
Thanks,
Thanks for your response also.
Thanks,