You need to sign in to do that
Don't have an account?
Vasavi Vajinepalli
Fetching object's fields in a visualforce dynamically from custom settings
Hi,
I've custom objects and fields. I've created custom settings for these objects and fields. Is there any way to fetch these object's fields into a visualforce page dynamically(Not to hardcode the object name)?
Please give me some examples as am new to salesforce :)
I've custom objects and fields. I've created custom settings for these objects and fields. Is there any way to fetch these object's fields into a visualforce page dynamically(Not to hardcode the object name)?
Please give me some examples as am new to salesforce :)
All Answers
You have to use apex for fetching teh values from custom setting and fill List<SelectOption> with those values. Then use this List<SelectOption> in page.
I hope this will help you.
I tried to do the above process by calling a method in VF page when change event occurs. And am returning the list but am getting below error
"Return type of an Apex action method must be a PageReference. Found: core.apexpages.el.adapters.ApexListELAdapter "
Can you please help me in returning list to VF page from controller.
thanks,
vasavi