Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
create a table column in beforeFactory
eddy00
Hi, <br />
<br />
in my report i create a column in beforeFactory like this:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
for (i=2;i<=2;i++) {
cs1 = StructureFactory.createComputedColumn( );
cs1.setName(params["A"].value[i]);
cs1.setDataType("decimal");
cs1.setExpression( "dataSetRow[\"A"+i+"\"]" );
mytable.addColumnBinding( cs1, false );
}
</pre>
<br />
It gives me a column with decimal values. But the values are like<br />
<br />
1.234 -> without decimal places<br />
<br />
How can i get the values with two decimal places, like:<br />
<br />
1.234,12<br />
<br />
In Property Editor i can change it in Format Number. But how can I do it in script?
Find more posts tagged with
Comments
There are no comments yet