title: Can I access solr dataimporter.request variables in a javascript transformer
body: <p>I have a dataconfig.xml file that collects data from an Oracle database. In the Datasource element, I use variables such as ${dataimporter.request.dbname} that return successfully the custom value I passed via the dataimport url. </p>
  
  <p>I am now writing a javascript transformer in this same dataconfig file to add values in a mutivalued field and that includes the database name. Is it possible to refer to the variable ${dataimporter.request.dbname} from within the javascript transformer? If so, what would be the correct syntax? </p>
  
  <p>This is what I have tried, but dbname does not get populated:</p>
  
  <pre><code>function relatedItems(row) {
      var relatedItemsArray = new java.util.ArrayList();
      var dbname=${dataimporter.request.db_name};
      relatedItemsArray.add('type=DOCUMENT;datasource:PB||' + dbname);
      row.put('relation', relatedItemsArray);
      return row;
    }
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>
  
  <p>Thanks in advance.</p>