You need to sign in to do that
Don't have an account?
Abhishek Singh 88
How to displays values in List into picklist on visualforce page
Hi everyone,
I want to create a picklist on a visualforce page , And the values of picklist should be values in a List.
Eg. I have a list called "CCO_producttype". And now on the VF page i want to display Values(CCO_producttype) in a dropdown format.
How would i approach. Any suggestion on this would be highly appriciated.
I want to create a picklist on a visualforce page , And the values of picklist should be values in a List.
Eg. I have a list called "CCO_producttype". And now on the VF page i want to display Values(CCO_producttype) in a dropdown format.
How would i approach. Any suggestion on this would be highly appriciated.
Please check the following code for your reference.. Here I took the list of product and trying to display a picklist on the vf.
Apex Class:
Vf
--
Thanks,
Prashant
Thanks for Acknowledging.
But the list i have is String type. List<string> CCO_producttype. So when I am itrating over for loop in order to add values in select option, it throwing error since list is string and i am using custom settings instance to itrate over it. so stucked here.
I was not knowing the above scenario, well please check the below code and let me know if that helps you..
--
Thanks,
Prashant
--
Thanks,
Prashant