Style Intelligence provides a few global functions in addition to those defined by the standard JavaScript runtime (see Appendix JS:General JavaScript Functions). This section presents the additional functions.
Adds a parameter to the report. This function is available only within the onInit Handler, and is equivalent to defining a report parameter using the 'Parameter Definition' dialog box in Report Designer.
Parameters
parameter name name of the parameter (String) parameter default parameter default value parameter type one of the constants defined in XType parameter alias label (String) to use when prompting hidden flag Boolean: false (default): prompt user true: do not prompt user
Example
addParameter('start_time', new Date(), XType.DATE, 'Start date', false);
The 'hidden' flag allows you to suppress user prompting for the parameter, equivalent to deselecting the 'Prompt User' option in the 'Parameter Definition' dialog box.
Creates a new Java object.
Parameters
class name (String)
Example
var presenter = newInstance('inetsoft.report.painter.IconCounterPresenter');
You can usually accomplish the same thing using the 'new' operator, but this sometimes does not handle Java packages correctly.
Loads an image file from a Java resource or string. The getImage() method checks whether the argument specifies a valid resource. If it does not specify a resource, then getImage() treats the parameter as an encoded image. Both ASCII Hex and ASCII85 are supported (useful for XML data).
Parameters
image file resource path or URL to an image or ascii hex or ascii85 encoded gif/jpeg image data
Example
var img = getImage('/com/mypackage/icon.gif'); img = getImage('http://chart.inetsoft.com/images/inetsoft.png');
Example
// picture column is ascii85 encoded gif image for(var r = 1; r < table.length; r++) { var img = getImage(table[r]['picture']); table[r]['picture'] = img; }
Tests for null value.
Parameters
a report object
Example
if(isNull(Text1.text)) { // perform action when text for element Text1 is null }
Returns information specified in the Document Info tab of Report Designer.The fields include the following:
Parameters
string containing document property (e.g., 'report.title')
Example
var text = docInfo['report.title'];
Prints a log message to the server log. If the script is running inside Report Designer, the log message is displayed in the Console window.
Parameters
log message string
Example
log('onLoaded called');
Returns a result set as a two-dimensional array that can be assigned to a Table, Chart, or Section.
Parameters
query_name a string containing the query name parameters (optional) a two dimensional array string array, each row containing a name value pair that corresponds to a query parameter
Example
var rs = runQuery('orders',[['category','Business'],['price',100]]);
Affordable Report Distribution Software - Regular reports are vital for the monitoring and control of business conditions. But in many cases, the production of daily, weekly, monthly, and annual reports puts additional demands on administrators and employees. And with so much business travel and work done out in the field, report accessibly and deliverability can also be an issue. Our solution, Style Report, makes the setting up and delivery of weekly reports easy and efficient. Pricing is lower than big name software providers, and all new customers get mentoring assistance for free to speed up their project delivery. Our solution is easy to learn; only basic Excel skills are needed. Companies who use our software see the value of this when managers start creating their own ad hoc reports, without support from IT. And with our mobile capabilities, report access is no longer an issue. Style Report is a web-based solution, which can be accessed on Ipads, Iphones, laptops, and other mobile devices...
Discussion About Best Practices for Selecting KPIs - There are a few best practices I can recommend when it comes to selecting key performance indicators, or KPIs. A middle-of-the road approach between a top-down and a bottom-up approach is recommended. Some people talk about a hub-and-spoke approach to performance management, because on the one hand, you don't want to do this in silos. You don't want each department creating their own metrics which overlap or create inconsistencies with other departments. But on the other end, any enterprise that tries to centralize the management of metrics and all the associated governance will fail. Those BI initiatives collapse under their own weight and bureaucracy and red tape and too many processes...
Good Weekly Dashboard Examples - Weekly dashboards are vital for the regular monitoring and control of business conditions. But in many cases, the production of weekly dashboards puts additional demands on administrators and employees. And with so much business travel and work done out in the field, dashboard accessibly and deliverability can also be an issue. InetSoft's solution, Style Intelligence, makes the setting up and delivery of weekly dashboards easy and efficient. Our solution is easy to learn; only basic Excel skills are needed. Companies who use our software see the value of this when managers start creating their own ad hoc reports, without support from IT. And with our mobile capabilities, report access is no longer an issue. Style Intelligence is a web-based solution, which can be accessed on Ipads, Iphones, laptops, and other mobile devices...
History of Management Information Systems - Management information systems are the foundation of modern management. They provide a comprehensive overview of how a business is performing and what needs to be done to improve it. The history of management information systems can be traced back to the late 19th century. The first time that the term "management information system" was used was in 1967 in a book by E.F. Moore and M.D. Smith called "Management Information Systems: Design, Implementation and Use"...
Interesting Daily Report App - Daily reports are vital for the regular monitoring and control of business conditions. But in many cases, the production of daily reports puts additional demands on administrators and employees. And with so much business travel and work done out in the field, report accessibly and deliverability can also be an issue. InetSoft's solution, Style Intelligence, makes the setting up and delivery of weekly reports easy and efficient. With our Report Scheduler, you can automate an unlimited number of daily reports, without creating additional work for IT or administrators. The Report Scheduler can be programmed to generate reports at any regular interval, whether its a daily, weekly, or quarterly basis. A report can also be triggered on a certain date or when a certain condition or threshold is met. The function of report delivery is also fully automated and scheduled. Reports can be automatically delivered by email or print, as well as exported into Word, Excel, Powerpoint, PDF, and other formats...
What Does a Management Report Contain? - Management reporting uses data gathered from several departments, units, and cost centers within a company, through EPR and CPM to facilitate decision-making processes. With the help of management reporting, business leaders can draft a well defined and data-driven judgment. This article will not only define management reporting but also given different perspectives related to the topic. Various examples of management reports will be illustrated, fundamental practices will be explored and the benefits of digital dashboards will be examined. Accessing digital data that is available to a business and optimally mining its benefits elevates a business leader into a position where he/she can make plausible management decisions, which will eventually propel the business into success...
Next: Report Objects
|