title: BIRT - Dynamic Master Page based on runtime data
body: <p>I'm trying to deploy a single report which will be used by multiple organizations.  Each of these organizations wants their logos on the report to display when:</p>
  
  <pre><code>logged_in_user.org_id = 'xxx' or 'yyy'.
  </code></pre>
  
  <p>I've created a nice library with multiple master pages holding the different logos.  What I'm unable to determine is if there's anyway to dynamically choose which master page to apply to the report at run time after I've loaded the user data, perhaps in the <code>initialize()</code> method for the page.</p>
  
  <p>I figured out how to get a handle on the master page using:</p>
  
  <pre><code>reportContext.getDesignHandle().findMasterPage("org_X_Master")
  </code></pre>
  
  <p>But I'm stymied trying to figure out how to set this as the master page for the report.  Any help would be appreciated.</p>