function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AmanAman 

VF page through Apex

 

Can we create a visual force page through Apex.

If yes, help me.

MiddhaMiddha

No, but you can do that using Metadata API.

WizradWizrad

Actually Dynamic Visualforce is in Pilot for Summer 11, so contact support and get it turned on in your org.

Ankit AroraAnkit Arora

Salesforce dont't provid this feature natively, but apprently you can use Metadata API. I am also working on it, as in my recent blog post

 

How to generate visualforce code from apex : http://forceguru.blogspot.com/2011/06/visualforce-code-generator.html

 

I need to insert the visualforce page when code of visualforce page is created.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

AmanAman

how can i create vf page through metadata API. Will u plz elaborate me. I am fresher on Salesforce.

Ankit AroraAnkit Arora

Am still working on it, will let you know when am done.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page