Birt - Insert Dynamic text box with script [message #1834341] |
Sun, 08 November 2020 08:21  |
Eclipse User |
|
|
|
I want to insert dynamic text box to a cell in table via script. I searched in documentation and SO but all I found was how to insert text to dynamic text but not the dynamic text box itself.
Is that possible, and how?
|
|
|
|
Re: Birt - Insert Dynamic text box with script [message #1834435 is a reply to message #1834432] |
Tue, 10 November 2020 10:41  |
Eclipse User |
|
|
|
in this script i would like to add it
initialize:
var firstC = ["AUD","ZAR"];
var secondC= ["AUD","BRL","CAD","USD"];
function colorG(item, col, row){
var currency = firstC[col] + "-"+ secondC[row];
if(verifyCurrency(currency)==true)
**HERE I WANT TO INSERT DYNAMIC TEXT AND INITIALIZE WITH VALUES**
}
function verifyCurrency(currency)
{
if(this.getRowData().getExpressionValue("row[digital]").indexOf(currency)!=-1)
return true;
else return false;
}
cell:
colorG(this,1,0);
|
|
|
Powered by
FUDForum. Page generated in 0.50618 seconds