InetSoft Reporting Software: Report Parameter Retrieval

The next step is needed to add code in the report creation routine to retrieve the parameter values. Each set of parameter values is packaged into a RepletRequest object. The parameter values can be retrieved using one of the 'get' methods.

'get' Method

Description

RepletRequest.getParameter()

Retrieve a parameter value as an object. This general-purpose access method works on any parameter type. The type of the object returned from this method depends on the declared type of the parameter.

RepletRequest.getBoolean()

Retrieve a boolean value (for boolean). If the value is not boolean, return true if the value is not null, false otherwise.

RepletRequest.getString()

Retrieve a string value (for text, text area). If the value is null, return an empty string.

RepletRequest.getInt()

Retrieve an integer value. If the value is null, it returns zero.

RepletRequest.getDouble()

Retrieve a double value. If the value is null, it returns zero.

RepletRequest.getArray()

Retrieve an object array (for list and option selections).

RepletRequest.getDate()

Retrieve a date (for date parameter). If the value is not a Date type, it converts it to string and parse it using the default date formats (configurable as a property).

RepletRequest.getTime()

Retrieve a time as a Date object (for time parameter). If the value is not a Date type, it converts it to string and parses it using the default time formats (configurable as a property).

 

RepletRequest Get Methods

Each 'get' method takes the parameter name as the argument and returns the appropriate value for the specified parameter. The request name in the RepletRequest object is the same as the request name in the corresponding RepletParameters object. The program can check the request name to see which request the parameters are associated with.

public ReportSheet createReport(RepletRequest req) {
   if(req.getBoolean("Sort Table")) {
      // sort table
   }
   ...
}


Passing an HTML Document as a Parameter

The setRequestDialogHTML method can be used to pass an HTML document or an HTML segment. The HTML can be specified in three forms.

• The string can be a resource path pointing to an HTML file. In this case the file is loaded in and used as the prompt dialog.

• The string can contain the entire contents of the HTML.

• The string can contain a segment of HTML. The segment is added to the bottom of the auto-generated prompt dialog. The engine checks for the presence of a <body> tag to determine if the HTML string is a segment or a complete document.

If the dialog is set, the HTML is used to prompt user input when viewing reports in a browser. Otherwise, the report engine generates a request dialog. The HTML page must contain a form that meets the following requirements:

• the form action field must be '$(servlet.uri)'

• the form target field must be '$(request.target)'

• the form contains a hidden field with name 'ID' and value '$(replet.id)'

• the form contains a hidden field with name 'req' and value '$(request.name)'

• the form contains a hidden field with name 'op' and value 'Generate'

• the form contains fields for the parameter values, where the name of each field must match the parameter field name






Read Dashboard Reviews



View 2-min Dashboard Demo



Register for Pricing

The form is responsible for closing the form window when the form is submitted. Use an onClick 'Handler'.

<input type=button value="OK" onClick="submit(); window.close();">

More Articles About Reporting

Analytics In Life Sciences - Everything that we do, whether it's science or medicine things that existed fifty years ago, no longer exists today. But change is slow. With the help of technology in the right ways at the right time, we can make the journey better for people. What does that mean to us? Imagine that someone's going to fall. What the analytics does is it takes different pieces of information and compiles them together. It gives the healthcare sector a true definition of risk for the patients so that they can hopefully prevent them from falling. Or, at least, implement an intervention. The analytics impact on medicine is fundamentally to transform the physicians' ability to personalize care directly to you. The benefits of analytics in life sciences are manifested in significant areas: Early detection of prescription and treatment patterns; Strategizing the intent of the patient to real-world results...

Choosing InetSoft Over Tableau - InetSoft is built upon a patented enterprise data mash-up platform (since inception in 1996). Enterprise data mashup refers to the ability to pull practically any type of data from any location and mash it up on the fly to create a virtual source of data that consists of reusable data blocks that can be queried in real-time from dashboards, reports and 3rd-party applications. In contrast, Tableau uses a data blending service feature (introduced in 2011, Tableau's data blending service is a crude and over-simplistic attempt at data mashup with simple joins no customization, control or reusability.) SELF-SERVICE – InetSoft's self service capabilities are completely zero client and web based, no installation or download of any software from InetSoft on the client side is required. Tableau only...

Evaluate InetSoft's Alternative to Lawson Business Intelligence - Looking for a good alternative business intelligence solution for Lawson? InetSoft's pioneering BI application produces great-looking cloud-based dashboards with an easy-to-use drag-and-drop designer. Mash up ERP, HCM, general ledger, and other enterprise data for a complete view of performance. Maximize self-service for business and technical staff. View a demo and try interactive examples...

Physicians' Office Analysis Tools - A Physician's Office Manager plays a crucial role in ensuring the smooth operation of a medical practice. They can leverage various business analysis tools to enhance efficiency, improve patient care, and drive financial success. Here's a detailed exploration of how a Physician's Office Manager can use business analysis tools: Revenue Cycle Analysis: Purpose: This tool helps in tracking the financial performance of the practice by analyzing the revenue generated through patient visits, services, and procedures. Utilization: The Office Manager can use revenue cycle analysis to identify trends in billing, collections, and reimbursements. This can help in optimizing billing processes, reducing claim denials, and improving cash flow. Key Performance Indicators (KPIs): Purpose: KPIs are essential metrics that measure various aspects of the practice's performance, such as patient satisfaction, appointment scheduling, no-show rates, and provider productivity...

Semiconductor Fabrication Company Report - A Product Manager at a semiconductor fabrication company plays a critical role in overseeing the development, production, and marketing of semiconductor products. Custom reports are essential tools for them to gather, analyze, and present data for decision-making and strategy development. Here's a detailed breakdown of what a Product Manager might include in a custom report: Executive Summary: Objective: Clearly state the purpose of the report. Is it to assess product performance, market trends, or production efficiency? Key Takeaways: Summarize the most important findings and recommendations in a concise manner. Market Analysis: Market Trends: Provide an overview of current trends in the semiconductor industry. This could include emerging technologies, demand shifts, and competitive landscape changes. Competitor Analysis: Evaluate the performance of key competitors. This might encompass market share, product offerings, pricing strategies, and customer feedback. Product Performance Metrics: Sales and Revenue: Present data on sales figures, revenue generated, and any notable fluctuations compared to previous periods...

Using Machine Learning to Develop KPIs - Almost everyone is discussing machine learning. What makes machine learning such a hot issue globally, particularly in the context of business? Because machine learning is a technology that may help businesses swiftly identify both lucrative possibilities and dangerous hazards. Business outcomes that are favorably impacted by machine learning in practice may dramatically raise an organization's bottom line. The usage and development of computers in such a manner that they can learn without being explicitly programmed is typically referred to as machine learning. Computer systems can now recognize important patterns and base choices on them thanks to the phenomena of machine learning. The development of new KPIs is one of the uses for machine learning. KPIs and machine learning In the past, key performance indicators were established using people's knowledge of the business world. But as technology has advanced, machine learning may now be used to create KPIs...

Live Stream Dashboards - Live stream dashboards typically incorporate a variety of key performance indicators (KPIs), metrics, and charts to provide real-time insights into the performance of the stream and engagement with the audience. These metrics can vary depending on the platform, the goals of the stream, and the preferences of the broadcaster. However, some common KPIs, metrics, and charts used on live stream dashboards include: Viewership Metrics: Concurrent Viewers: The number of viewers watching the stream at any given moment. Peak Viewers: The highest number of concurrent viewers reached during the stream. Total Views: The cumulative number of views over the duration of the stream. Viewer Locations: Geographical distribution of viewers. Engagement Metrics: Chat Activity: Number of messages sent in the chat room. Emote Usage: Analysis of emojis and emotes used by viewers...

Previous: Report Parameter Types