Home
Designing Analytics Reports
Different background Images @MasterPage
Migrateduser
<p>Hi All,</p>
<p> </p>
<p>I have a 6 pages in a report design all of them have a single master page.</p>
<p>Now, I want to show 6 different background images for each of the page using the same master page as my master page has header and footer also and If I add image on pages itself in some report Item I can see blank spaces at top and bottom.</p>
<p> </p>
<p>Any idea How I can change report master page image at runtime?</p>
<p> </p>
<p>I have the following code but it is changing the image for all the pages.</p>
<p> </p>
<div>//Getting the Portfolio Grid and adding that to report layout</div>
<div>SectionDescriptionPortfolio = libhandle.findElement("SectionDescPortfolio");</div>
<div>reportContext.getDesignHandle().findMasterPage("SectionDescMasterPage").setProperty('backgroundImage','Images/PortfolioOverview.JPG');</div>
<div>SectionDescriptionPortfolio.setProperty('masterPage','SectionDescMasterPage');</div>
<div>SectionDescriptionPortfolioLayout = elementFactory.newElementFrom(SectionDescriptionPortfolio, "SectionDescriptionPortfolio");</div>
<div>reportContext.getDesignHandle().getBody().add(SectionDescriptionPortfolioLayout);</div>
<p> </p>
<p> </p>
<div>//Getting the RiskReturn Grid and adding that to report layout</div>
<div>
<div>SectionDescriptionRiskReturn = libhandle.findElement("SectionDescRiskReturn");</div>
<div>reportContext.getDesignHandle().findMasterPage("SectionDescMasterPage").setProperty('backgroundImage','Images/RiskReturn.JPG');</div>
<div>SectionDescriptionRiskReturn.setProperty('masterPage','SectionDescMasterPage');</div>
<div>SectionDescriptionRiskReturnLayout = elementFactory.newElementFrom(SectionDescriptionRiskReturn, "SectionDescriptionRiskReturn");</div>
<div>reportContext.getDesignHandle().getBody().add(SectionDescriptionRiskReturnLayout);</div>
</div>
<div> </div>
<div> </div>
<div>Ideally it should add 2 different images but I can see only the last image. ie. RiskReturn Image.</div>
<div> </div>
<div>help will be much appreciated.</div>
<div><br>
regards</div>
<div>Shasha</div>
Find more posts tagged with
Comments
There are no comments yet