You need to sign in to do that
Don't have an account?
Vivek Manchanda
How to get all the data from the Account Rating pick list in custom VisualForce Application ?
I am trying to get the value from the Pick List " Account Rating " in my VisualForce custom Application data like "HOT,WARM,COLD ".
I have made the Custom Controller through which I am trying to add new Account 's .
Now I want to Add new field in my Application that is Account Rating Pick List .
I have made the Custom Controller through which I am trying to add new Account 's .
Now I want to Add new field in my Application that is Account Rating Pick List .
Page:
Controller:
I also threw this together in notepad so it might have some syntax errors but it should be good.
Message Edited by TehNrd on 02-29-2008 01:18 PM
I too did not compile the above but it should give you a headstart.
Message Edited by mtbclimber on 03-02-2008 07:48 AM
Message Edited by mtbclimber on 03-02-2008 10:39 AM
I would like to know.. if there is any way we can get the values of picklist like Account ratings directly from Salesforce and populate the selctList control in our custom Visualforce page? rather then harcoding it or using the Standard controller??
Thanks in anticipation of your response.
regards
Pallav
This is a future feature, the ability to describe the field types, sizes, default pick lists given an object name.
Summary:
Today you would use inputField with a standard OR custom controller in apex to present a picklist for account.rating in a way that dynamically presents the picklist values managed under setup for that field.
If you want to use the picklist values in some other way, i.e. present all the values (not in an input), then you would need the ability to access describe in apex which is not available today as Ron suggests.