In this section: |
This topic describes how you can develop and enhance interactive content that has enabled In-Document Analytics capabilities.
In this section: |
As a developer, you can create effective, useful reports and share them easily using In-Document Analytics for offline analysis.
A report is used to show the intersections of data between rows and columns. Once created, you can style your report, add headers, and footers, and apply other formatting options to make your data stand out. When you have completed creating your report, you enable In-Document Analytics. Using this format, your users can interact with data, using analysis options similar to those found in an Excel workbook. Since no connection to a server is required to view the data or use the analysis options (for example, filtering, charting, and sorting), you can save and use the report anywhere.
Note: All reports display with HFREEZE ON, a feature that freezes the headings in your report, in In-Document Analytics.
In this section: |
You can configure analytic document options for interactive reports, including menu options, based on user role, through the Analytic Document Options dialog box.
You can access the dialog box on the Format tab, in the Features group, by clicking the button. The button is available when HTML Analytic Document or PDF Analytic Document is selected as the output type.
The Analytic Document Options dialog box contains the following tabs:
Use the General tab to set common properties specific to interactive, analytic reports.
The General tab contains the following options:
Display. This area contains options to set the window to cascade or tabs, and options to freeze columns.
Page Options. This area contains options to set the number of records per page, enable the display of page information, edit the alignment, and set the location of the page information.
Chart Options. This area contains options that pertain to charts when the output format is PDF Analytic Document.
Note: Chart Options do not display when the output format is HTML Analytic Document.
Use the Menu Options tab to select a user type and which options to display in the menu.
The Menu Options tab contains the following options:
The options available according to user type include the following:
Use the Colors tab to select colors for various objects on the report.
The Colors tab contains the following options:
Page. This area contains options to set the colors for the font and background of the page text.
Row Selection. This area contains options to set the colors that appear when you point to or select a row on the report.
Visual. This area contains options to set the colors for the data visualization bars.
Calculations. This area contains options to set the colors for values in a calculation.
Menu. This area contains options to change the color of the menu.
Note: Cache is enabled when you select as the output type, and click Pages On Demand on the Format tab, in the Navigation group.
The Advanced tab contains the following options:
Cache. Enables a report to cache the data in a binary file and return the data to the output window in pre-set increments.
Security. This area allows you to set a password to access the report and enable expiration by date or by days. This option is only available for the reports that have enabled an In-Document Analytics report output.
Note: When setting security options for interactive reports, be aware that security options can be set for each individual component on the canvas, but only one password can be set for the entire document.
How to: |
When working with interactive reports that use In-Document Analytics, you can freeze column headings. The Freeze option in the GUI tools allows you to define a scroll area within the data of your report and lock the column heading titles in place, enabling you to scroll through the data within the container. Report headings, footings, and grand totals are also locked, so that these also stay in view while you scroll the data in your report. This is particularly useful when you are creating a large report, for which there may be multiple pages.
When you enable the column title freeze feature and run your report, a thin scroll bar displays to the right side of the report, as shown in the following image.
When you mouse over the thin scroll bar, it turns into a full scroll bar, making it easier to scroll through your report data. This scroll bar is shown in the following image.
If your report has more columns than can fit in the output container, you can employ the horizontal scroll bar at the bottom of your report.
Note: Scroll bars do not display if there is no scrollable data. Thus, if the data displayed fits the size of the container, scroll bars do not display.
You can enable the column heading freeze feature for interactive reports in the GUI tools using the Freeze button on the Format tab of the ribbon, in the Navigation group. Enabling the Freeze option will add HFREEZE=ON in the stylesheet section of the report procedure, as shown in the following example.
ENGINE INT CACHE SET ON SET PAGE-NUM=NOLEAD SET SQUEEZE=ON -DEFAULTH &WF_HTMLENCODE=ON; SET HTMLENCODE=ON SET HTMLCSS=ON -DEFAULTH &WF_EMPTYREPORT=ON; SET ARGRAPHENGINE=JSCHART SET EMPTYREPORT=ON SET EMBEDHEADING=ON SET GRAPHDEFAULT=OFF -DEFAULTH &WF_SUMMARY='Summary'; -DEFAULTH &WF_TITLE='WebFOCUS Report'; TABLE FILE wfretail82/wf_retail_lite SUM WF_RETAIL_LITE.WF_RETAIL_SALES.COGS_US WF_RETAIL_LITE.WF_RETAIL_SALES.DISCOUNT_US WF_RETAIL_LITE.WF_RETAIL_SALES.GROSS_PROFIT_US WF_RETAIL_LITE.WF_RETAIL_SALES.REVENUE_US WF_RETAIL_LITE.WF_RETAIL_SALES.MSRP_US BY WF_RETAIL_LITE.WF_RETAIL_GEOGRAPHY_CUSTOMER.STATE_PROV_NAME ON TABLE PCHOLD FORMAT AHTML ON TABLE ROW-TOTAL ON TABLE NOTOTAL ON TABLE SET CACHELINES 100 ON TABLE SET AUTOFIT OFF ON TABLE SET GRWIDTH 1 ON TABLE SET STYLE * INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$ TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ARGRAPHENGINE=JSCHART, HFREEZE=ON, $ ENDSTYLE END -RUNOnce you have enabled the column heading freeze feature, you must run your report to view the report with scroll bars.
You can freeze column headings in your interactive reports.
Note: If you have numerous columns in your report, you can employ the horizontal scroll bar at the bottom of the report.
How to: |
Report requests that use the ACROSS sort phrase generate a group of columns (one for each display field in the request) under each value of the ACROSS field. In many cases, some of these columns have only missing or null values.
When working with interactive reports in AHTML format, you can use the HIDENULLACRS parameter to hide the display of ACROSS groups containing only null columns. To hide null across columns, use SET HIDENULLACRS=ON. The default value is OFF.
This feature allows you to display only the columns of the report that contain data, and only the information that is needed, saving report space while presenting a more visually appealing report.
The following image shows an example procedure in the WebFOCUS Editor, with the HIDENULLACRS command turned ON.
Note: This feature is not supported with the PAGE-BREAK option.
Once you have enabled the HIDENULLACRS SET command, save the procedure and return to the report. The adjusted values display at run-time. Any ACROSS column that contains only missing or null values will be excluded from the report output.
When HIDENULLACRS is set to OFF, columns that contain only missing or null values are not hidden, as shown in the following image.
When HIDENULLACRS is set to ON, the columns with only missing or null values are hidden, as shown in the following image.
This saves real estate in your report, giving you control over the values that display.
Note: In cache mode, the display of null columns may vary depending on the CACHELINES setting. If there is at least one data value for an ACROSS column in the cached data, the column will not be hidden even when only missing or null values display in some of the pages.
By default, the report displays columns that have only missing or null data, as shown by the Espresso column in the following image.
The report displays without the columns that contain only null values, as shown in the following image.
Notice that the column for Espresso is now hidden.
Note: In cache mode, the display of null columns may vary depending on the CACHELINES setting. If there is at least one data value for an ACROSS column in the cached data, the column will not be hidden even when only missing or null values display in some of the pages.
You can use the HIDENULLACRS SET command to control the display of ACROSS columns with only missing or null data when working with small or large reports.
Charts are graphical representations of data, showing trends, tendencies, and even possible predictions. A chart often conveys meaning more clearly and effectively than data displayed in tabular form. Charts show summaries on a higher level, giving you a better view of your most important data.
A chart enables you to visually communicate quantitative information. Using a chart, you can give data a shape and form, and reveal patterns and relationships among many data values. A chart can highlight anomalies that require further investigation.
It is important that you choose a chart that is appropriate for your data. InfoAssist provides a complete chart library of both basic and advanced charts. You can choose from a wide variety of charts to best represent the data that you want to display.
In InfoAssist with In-Document Analytics enabled, you can create an interactive chart, change the type of chart, and run the chart to take advantage of the tools that are available to you for online or offline analysis.
Interactive charts support the use of HTML5 extensions, which are user-supplied, custom chart types that access resources external to WebFOCUS. For details on the structure of an extension and the steps for creating your own, as well as the process for adding it to the chart library, see the Adding Your Own Chart Types to the Chart Library chapter in the Creating HTML5 Charts With TIBCO WebFOCUS® Language manual.
If you are working with an AHTML chart that does not have the new chart properties (specifically, non-bucket AHTML charts), you will encounter problems if you change the chart type to one of the following chart types using the Advanced Chart tool at run time:
By default, these chart types are hidden in the Advanced Chart tool when the original chart is an AHTML bucket chart. These chart types are available under the following circumstances:
In this section: |
How to: |
You can create an interactive dashboard by inserting multiple content types, such as reports, charts, images, and text, into a document. It will run any report or chart using the In-Document Analytics output format, even if the report or chart itself is not interactive.
You can also insert interactive prompts into a document to act as filters for the reports and charts on the dashboard, as well as cascading (chaining) prompts to populate them based on the selections from the previous prompts.
The output format of the interactive dashboard must be HTML Analytic Document or PDF Analytic Document in order to add interactive dashboard prompts.
The Analytic Document prompts group contains buttons that insert components in your dashboard. This group is only visible when the output format of the dashboard is set to HTML Analytic Document or PDF Analytic Document. You can access these options from the Insert tab, in the Analytic Document Prompts group.
The following are the types of prompts that you can use to apply filters to a dashboard:
Note: The display of values populated in the prompts is dependent on the data setting. For example, if sample data is turned on, then the prompts will show sample data, such as:
WF_RETAIL1 WF_RETAIL2 WF_RETAIL3
When you bind a field to an Analytic Document prompt, the default target report is the report from which you dragged the field. You can add or remove target reports from the prompt through the Analytic Document Options dialog box.
A report must meet one of the following requirements to be a target report:
If a report is eligible to be a target report because the field has the same user-supplied title and the title is changed, the report is automatically removed as a target.
This procedure describes how to begin to create a dashboard by creating one report and binding a single prompt to one of the fields of the report.
With InfoAssist in Document mode:
A placeholder appears on the canvas.
The prompt type you selected now appears in the upper-left corner of the canvas. If the report is located in the upper-left corner of the canvas, you will have to drag the prompt off the report.
Once you have bound the field to the prompt, the values of the field appear in the prompt.
Note: Once a prompt is added to the canvas, the document is locked in an In-Document Analytics output format, and you cannot change the format. To switch to a non-interactive output format, you must remove all prompts.
How to: |
You can add multiple reports and charts to an interactive dashboard. Each report can have multiple prompts associated with it.
The following procedure describes how to set up Analytic Document Prompts for two reports on a dashboard. In the example that is used, the first report contains information about the categories of electronics products sold in various regions. The Product,Category field will be bound to a group of radio buttons. Each radio button will represent a particular product category of electronics. When you select a radio button for a product category, for example, Accessories, the report will be filtered by your selection.
The second report contains information about the gender and geographic location of electronics consumers. The Gender field will be bound to a drop-down list. The list will display the values, F (female) and M (male). When you select a gender from the drop-down list, the report will be filtered by your selection.
Report 1:
Report 2:
The Analytic Document Prompt Properties dialog box opens.
The Prompts list displays the two prompts (for example, radiobutton_1 and combobox_2) that were added to the dashboard in Step 3.
In this example, the radio button list (radiobutton_1) has been selected as the prompt for the region report (Report 1), as shown in the following image.
The next step describes how to bind the Product,Category field from the region report to the radio button list to filter that report.
In this example, the Product,Category field has been selected for the radio button list (radiobutton_1), as shown in the following image.
Note: You can optionally specify an ascending or descending sort order for the current scenario.
The prompt is now bound to the field on the dashboard.
In the following image, the radio button list is bound to the Product,Category field. It displays all product categories by which you can filter the report.
The following steps describe how to bind the Gender field in the gender report (Report2) to the drop-down list prompt.
The Analytic Document Prompt Properties dialog box opens again.
Notice that combobox_2, the prompt selected on the dashboard, is selected in the Prompts list.
The next step describes how to bind the Gender field from the gender report to the drop-down list to filter that report.
Once the Gender field has been selected, Report2 (gender report) appears in the Targets list and Report1 (region report) appears in the Candidate Reports list.
Note: To move a report from the Candidate Reports list box to the Targets list box, select it and click the Add to List arrow. To remove a report from the Targets list box, select it and click the Remove from List arrow. You can select multiple reports by holding down the Ctrl key and clicking each one.
The prompt is now bound to the Gender field on the dashboard. You can now filter the gender report by female or male, as shown in the following image.
The final dashboard displays, as shown in the following image.
You can change the field to which the prompt is bound.
The Analytic Document Prompt Properties dialog box opens.
A warning message alerts you that changing the source field for the prompt will remove the existing prompt and any dependent (child) prompts from the cascades.
The prompt is updated with the new source field.
The Analytic Document Prompt Properties dialog box opens.
The filter condition is applied to the prompt.
When you have more than one prompt on the canvas, you can cascade prompts to populate them based on the selections of the previous prompts. Cascading prompts have a parent-child relationship, in which the parent filters the available options of the child.
A prompt can be the parent of more than one other prompt, but cannot be a child of more than one prompt.
The Analytic Document Prompt Properties dialog box opens.
By default, a cascade named Cascade1 appears in the Cascades section of the Analytic Document Prompt Properties dialog box.
Note: You can remove prompts from the Selected Prompts list box by selecting them and clicking the Remove from List arrow.
By default, the hierarchy of the prompts is determined by the order in which they are added to the Selected Prompts list. The cascade of the prompts is from top to bottom. The prompts that come first in the Selected Prompts list are the parents of the lower prompts.
The cascade is created.
Note: If you set up more than one cascade, the cascade that you interact with last is the one that filters the report.