Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
setting MasterPage
rudi_ment
Hi,<br />
<br />
I designed a Report with one grid (for one page). Now i have 2 MasterPages, which shall be set dynamically for the grid. I tried to write an initialize script to set the MasterPage for the grid, depending on a parameter. but i cant get it to work.<br />
Can anyone please help me?<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
if (reportContext.getAppContext().get("birtDaten").isKomposit() == true){
//Here i want to set the MasterPage for the grid named "Anschreiben"
....setMasterPage("Anschreiben-Komposit");
}
</pre>
Find more posts tagged with
Comments
mwilliams
Hi rudi_ment,
Try this in the onPrepare method of your grid.
this.getStyle().masterPage = "masterPageName";
rudi_ment
thx mwilliams!
Its exactly what i was looking for!
mwilliams
Always glad to help! Let us know whenever you have questions!