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
rosscorossco 

Dynamic include

Goodday

 

 

Is it possible to have a dynamic include statement in a visualforce page (to include another visualforce page) - either with an IF statement,or by specifiying the included page via a variable/parameter?

 

Secondly, is there any way to embed a PDF in a visualforce page ?

 

Many thanks in advance

Ross

ImpactMGImpactMG

Hi,

 

perhaps this helps you:

    <apex:composition template="{!MyDynamicPage}"/>

 

in controller:

    public PageReference GetMyDynamicPage(){
        if (something)
            return Page.Page1;
        else
            return Page.Page2;
    }