title: accessing parameters when writing a scripted BIRT data source in java
body: <p>I am using BIRT reporting with a scripted POJO data source and am having trouble accessing report parameters. I am scripting everything in Java, rather than javascript. The code is below:</p>
  
  <pre><code>public class StockDataSetHandler extends ScriptedDataSetEventAdapter {
   ...
  
   @Override
   public void open(IDataSetInstance dataSet) {
    count = 0;
    StockDaoMock mockStockDao = new StockDaoMock();
    //The code below works in javascript. How can I do the equivalent
    //in Java? Where do I get params from?
    String paramValue = params["myparameter"];
    stockData = mockStockDao.getStockValues(paramValue);
   }
  }
  </code></pre>
  
  <p>BIRT's documenation refers to the params collection. How do I get hold of that in Java?</p>
  
  <p>Cheers
  Tin</p>