You need to sign in to do that
Don't have an account?
suresh.csk
How to use custom object pagelayout in VF
Hi.
Created a Custom Object A.
The Custom Object A having text fields and also look-up fields.
Then created a VF called testpage.
I need to use the Custom Object A's Page-layout in testpage.
To say simply I don't need to again re-create the all text fields in the testpage.
I need to insert records to the custom object A using the testpage.
Really appreciate for your great ideas.
cheers
suresh
All Answers
There is no provision of using Readymade pagelayouts in VIsualforce as of now. This is under consideration from salesforce people.
http://community.salesforce.com/t5/Visualforce-Development/What-would-you-expect-to-be-able-to-do-with-the-edit-mode-of/m-p/182293#M23884
If you want to achieve this, You have to recreate the layout using Pageblocks and Pageblock sections like the other guy has suggested.
Arvind & Srinivas
Thank you very much for your precious time and suggestions.
I will go with the pageblock idea.
Thanks
It actually does exist, check out <apex:detail>
http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_compref_detail.htm
something like the code below will pull in the page layout you have created for the custom object A