InetSoft Reporting Software: Report Objects

The Element object is the base object of all other report objects. All other objects share its methods and properties. This section lists general properties of the Element object.

alignment

Specifies the horizontal and vertical alignment of an element. Its value is a bitwise OR of a horizontal alignment option and a vertical alignment option.

Horizontal Alignment

Vertical Alignment

StyleReport.H_LEFT

StyleReport.V_TOP

StyleReport.H_CENTER

StyleReport.V_CENTER

StyleReport.H_RIGHT

StyleReport.V_BOTTOM

StyleReport.H_CURRENCY

StyleReport.V_BASELINE


Type

integer

Example

alignment = StyleReport.H_CENTER | StyleReport.V_CENTER;
view demo icon
View a 2-minute demonstration of InetSoft's easy, agile, and robust BI software.

background

Specifies the background color that fills the entire area of the element.

Type

java.awt.Color

Example

background = java.awt.Color.lightGray;

font

Specifies the font for this element.

Type

java.awt.Font

Example

font = new java.awt.Font("Arial", java.awt.Font.BOLD, 12);

foreground

Specifies the foreground (text) color of the element.

Type

java.awt.Color

Example

foreground = java.awt.Color.red;

indent

Specifies the indentation (in inches) if the element is the first on the line.

Type

double

Example

indent = 0.5;

keepWithNext

Specifies that the element should be kept on the same page as the next element.

Type

Boolean

Example

keepWithNext = true;

sectionID

The ID of the Section containing the element. If the element is not in a Section, then sectionID is undefined.

Type

string

Example

var table1 = report['sectionID'].table;

sectionLevel

If the element is contained in a grouped Section, returns the grouping level of the element's sub-group. Otherwise, sectionLevel is undefined.

Type

integer

Example

var level = sectionLevel;

sectionRow

The index of the Section row with which the element is associated. If the element is not in a Section, then sectionRow is undefined.

Type

integer

Example

 var table1 = report['sectionID'].table;
 var row = table1[sectionRow];

sectionType

The type of Section band that contains the element. The type values are 'Header', 'Content', and 'Footer'. If the element is not in a Section, then sectionType is undefined

Type

string

Example

 if(sectionType == "Footer") {...}
Read how InetSoft was rated #3 for implementation in G2 Crowd's user survey-based index.

spacing

Specifies the line spacing (points) for a Text element.

Type

integer

Example

spacing = 1;

target

Specifies a target (anchor for a hyperlink) on this element.

Type

string

Example

target = text;

visible

Specifies the visibility of the element. This property can be used to dynamically hide elements in a report.

Type

Boolean

Example

visible = parseInt(text) > 0;

value

Returns the integer value of an element within a Section.

Type

integer

Example

 if(text54.value < 100) {
    ...
 }

position

Specifies the position of an element within a Section.

Type

number array

Example

position = [80, position.y];
view gallery
View live interactive examples in InetSoft's dashboard and visualization gallery.

field

Returns the current value bound to an element within a Section. The field property uses the name of the bound data field (rather than the element's ID) to refer to the element's value. If the element that references the field array is not within a Section, then the field property is undefined. Modifications to the field array have no effect on elements.

The field array provides read-only access to the values of all bound elements in the current band/row, and is accessible from every element inside the band.

The field array provides the original data bound to the element, not the string representation provide by the Text Property. Therefor, if a column has type Date, the field array returns a Date object.

Return

original value bound to an element in the Section

Example

field['customer_id'] + ':' + field['quantity'];

hints

Specifies that a column added to a Section using script is included when the report is exported in CSV format. The value you specify for the property becomes the name of the column in the exported file.

Example

hints['csv.column'] = 'NewColumn';

This property must be set in the Section element's script, not in the script of an element within the Section.

More Articles About Reporting

Accessing Custom Data Source (Objects) Problem - Some businesses require reports or dashboards to be created from a custom data store. This data store can be presented as an object but cannot be easily integrated with other dashboard or reporting tools. The Style Intelligence Solution Style Intelligence goes beyond reporting against traditional data sources such as relational databases, XML, and flat files by providing a unique object data source interface. More and more businesses are creating object data stores in order to provide a unified data interface and persistent data store for all applications across the entire enterprise. The most common approach is to retrieve data from a relational or hierarchal data source such as an RDBMS or XML file, and then transform it into objects. The problem is accessing these objects. Since Style Intelligence is a 100% Java application, it requires a Java interface to access custom data sources. This Java object layer can retrieve its data from any location so Java is only required at the top level, not at every level...

AI in Corporate Finance - AI is increasingly transforming corporate finance departments by automating routine tasks, enhancing decision-making processes, and providing deep insights through data analysis. Here's a detailed look at how AI is being utilized in various aspects of corporate finance: 1. Automating Routine Processes Accounts Payable and Receivable: AI-powered systems can automate invoice processing, matching purchase orders with invoices, and flagging discrepancies. This reduces manual effort, speeds up processing times, and minimizes errors. Expense Management: AI tools can automate expense report submissions and approvals. By scanning receipts and matching them with transactions, AI reduces the burden on employees and finance teams. Payroll Processing: AI streamlines payroll by automating calculations, ensuring compliance with tax laws, and managing employee benefits. This ensures accuracy and timely payments...

BI and ETL Layers - If we look at the product division we see the definition that the business has given to this thing called product division. That can then be used consistently with the BI layer in and the ETL layer and the database layer. And we can even take it as far as when you hover over it when you are actually in the BI layer in a report, this definition will actually show up as what this term really means. This is another one of the reasons we like the consensus tool so much. So if you can imagine, we haven't really generated anything technically. We simply have this information package in the form of a business model that is in this screen. Then we take that back in Sprint 0 to the business, and we can answer these questions. These are the use cases that represent what the BI layer would be able to answer...

BI Visualization Layer - We focus on integration, and we and what we're building it along the way in this value chain methodology. We're creating those story cards which then are the tasks that get handed out to the development team to go build, and we build story cards around the database objects, the ETL, data integration, and the data quality. Then we have stories around the BI layer, around visualization in the form of dashboards or reports and that kind of stuff. So that's really as we begin to decompose and really think through the business wants and needs and deconstruct it and we end up with the ability and the delivery sprint thing to go actually create the work, to do the work...

Epitaxy Equipment Manufacturer Visualization - Epitaxy equipment is used in the semiconductor industry to grow crystalline layers on a substrate crystal, ensuring that the deposited layer maintains the same crystallographic orientation as the underlying substrate. This precise growth technique is crucial for manufacturing high-performance electronic devices, including integrated circuits (ICs), light-emitting diodes (LEDs), and solar cells. The epitaxy process involves techniques such as molecular beam epitaxy (MBE) and chemical vapor deposition (CVD). In MBE, beams of atomic or molecular species are directed at the substrate in a high vacuum, allowing for the deposition of ultra-thin layers with atomic precision. CVD involves reacting gaseous precursors at the substrate surface, resulting in the formation of a crystalline layer...

Good Business Intelligence Web Application - Web-based BI applications offer users freedom that desktop programs cannot compete with. You can take Web applications with you on your phone or on your tablet. You are constantly connected to your data. InetSoft's Style Intelligence is a zero-client tool for internet reporting. As such, it has many benefits over its desktop-bound competitors. Benefits of Web Applications Style Intelligence does not require powerful hardware to run properly. There are no real physical requirements to run Style Intelligence. Any Web browser has the capability to run the software, including mobile. Android tablets, iPhones, iPads, and any other device with a browser is fully capable of running Style Intelligence...

Previous: Reporting JavaScript Object Reference Next: Reports Function Reference