Birt: how to run JavaScripts -


so have script run dynamically format report. don't know it. place .js file , how tell birt run script after design phase?

i have found resources on can scripts none of them go on how use them in birt. of them talk resource folder don't know resource folder should go.

can me figure out? lot. running birt 4.2.2

p.s. oh , no report designer stuff. working in java not designer.

we figgured out. have add data.setonrender(jsstr); when constructing report.

for (int = 0; < cols.size(); i++) {     cellhandle cell = (cellhandle) tabledetail.getcells().get(i);     dataitemhandle data = designfactory.newdataitem("data_" + cols.get(i));      data.setresultsetcolumn(cols.get(i));      cell.getcontent().add(data);     string jsstr = "javascript goes here.";      data.setonrender(jsstr); } 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -