[Working with scripts]: Manipulation Of Report Element's Properties

Properties of report elements such as “Alignment”, “Width” and ‘Left’ can be manipulated using a script.

An example will be setting the element to be aligned left if the amount is greater than 100.

Code placed at “On Render Begins” of the component:

=Code Snippet=
if (sales > 100)
{
this.setTextAlign("Left");
}
else
{
this.setTextAlign("Right");
}