Hello all. I'm using BIRT 3.7.2. I have a short script which ran fine when under BIRT 2.6, but now fails. The script does some basic trimming of a URL as follows:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>var url = this.getValue();
var urlLength = url.length();
var maxLength = 30;
if (urlLength > maxLength){
this.setDisplayValue(url.substring(0, 13) + "..." + url.substring(urlLength-14, urlLength))
} else {
this.setDisplayValue(url)
}
var myaction = this.createAction();
myaction.setHyperlink(url,"_blank");
this.action = myaction;</pre>
<br />
The error message generated is <strong class='bbc'>TypeError: Cannot find function getValue in object org.eclipse.birt.report.engine.script.internal.instance.CellInstance</strong><br />
<br />
The page at <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/deploy/reportScripting.php'>http://www.eclipse.org/birt/phoenix/deploy/reportScripting.php</a> indicates that <em class='bbc'>getValue(</em>) is available, but that seems not to be the case in 3.7.2? How can I retrieve the cell value so the script can do its thing?<br />
<br />
Thanks,<br />
<br />
Clive