You need to sign in to do that
Don't have an account?
Saurabh Smarty
Hi All, I need to display all the fileds of an objects in the VF Page so that if anyone adds/deletes a field it should be reflected in the VF page automatically
I have an idea that we can use getdescribeField method of schema class and arranging it in map through getMap() method but not sure how ll it be actually implemented.
Thanks in Advance!
Thanks in Advance!
Refer the following link from the Visualforce developer Guide which provides details around using Field Sets within Visualforce - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_field_sets.htm.
Please mark this thread as SOLVED and answer as the BEST ANSWER if it helps address your issue.
Yes, you are correct you have to use the fields.getMap(). You may refer the below code for your reference - You will have to replace Account with the object API name you want to use and then you can use <apex:repeat> tag in a Visualforce page on the accountObjFieldSet .
Hope this will resolve your query :)