When viewing a report or other type of output, a "Report tools", "Output tools",
or "Preview tools" icon will appear in the header adjacent to the |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Find text in output | ||||||||||||||||||||||||||||||||||||||||||||||||||||
The Find function, available in Internet Explorer, Netscape and Mozilla, allows the report to be searched for a string. It only searches the pages that are currently displayed. For other types of output, such as Macro output organized into expandable/collapsible sections, a checkbox is available for "Visible text only". This will limit the Find to only those sections that are expanded. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Printing output | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| If the User wishes to print output in full color, the Print black & white
checkbox in the Report Body section of the |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Download file formats | ||||||||||||||||||||||||||||||||||||||||||||||||||||
For some types of output, the only download option is HTML. Individual reports can be downloaded as HTML, or Microsoft Word and Excel files. The User can choose to create the file based on the currently Displayed page set, or if there are more rows than can be displayed in the current page set, a file of all pages (Whole report). If the DOC or XLS radio button is selected, the HTML will be modified to allow the file to be loaded into the chosen application and maintain the report formatting, including colors, font sizes, etc. The only noticeable difference between this format and the normal HTML output is that some types of numeric formatting may not line up precisely. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Download as DATA file | ||||||||||||||||||||||||||||||||||||||||||||||||||||
QLR Manager allows the User to create several different types of data files for report output.
Microsoft Excel (XLS), comma separated values (CSV) and semi-colon separated values (TXT) files can
be created. These files can then be imported into other applications such as Microsoft Excel.
The file is created on a "What You See, Is What You Get" basis, giving the User
maximum control over the format of their output. The layout capabilities found in the |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Will produce a CSV file that contains: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
"partnum","name","boh","price" |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
An XLS file can be created with the same data to be loaded directly into Microsoft Excel. Text formatting, such as colors and fonts, will not be preserved. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Report pages: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This option specifies the scope of the amount of data that will be output. If
the "Displayed" option is selected, then the output content will only contain what
is in the currently viewed page set. If "Whole report" is selected, then all the
data associated with the report will be output. There is a third option available when
downloading a XML or Data file. The selection of
"Whole report (Raw data - fast)"
creates a data file, bypassing any changes made in the |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Include column headers: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
When selected, this option will add one additional row of data to the top of the data file, which are the column headings as they appear in the report. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| File type: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This option allows the User to specify the type of file to be created. Microsoft Excel (XLS), comma separated values (CSV) and semi-colon separated values (TXT) files can be produced. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Download as PDF file | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Transforming the HTML output from QLR Manager into a PDF file is computation intensive. It is possible that large report output may timeout on the server before the output is created. For this reason, PDF downloads should be limited to smaller reports. The number of cells in the tabular output is the critical factor. Five pages or less can usually be converted without any difficulty, but more pages with a large number of report columns may timeout. Smaller chunks of PDF output can be created and merged together with Adobe Acrobat if desired. Note: An alternate method of producing large PDFs from QLR Manager output can be achieved by displaying the whole report and using a PDF writer such as Adobe Acrobat or CutePDF (available free from www.cutepdf.com). This method is recommended for large reports and is usually much faster than converting HTML to PDF on the server. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Page margins: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
These are the page margins that will be applied to the PDF output. The default values are 15mm, which are slightly less than 5/8 inch. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Orientation: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This selection sets the page orientation of the output. Portrait is narrower than it is tall and landscape wider than it is tall. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Paper size: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This option provides a selection of paper sizes for the PDF output. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Page width: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
The "Page width" selection can be equated to screen resolution. For example, if the workstation resolution is 1024x768 and the web browser is expanded full screen, the 1024 selection would approximate the width of the content visible in the browser window. The higher the selected page width value, the smaller the font. A smaller value may be more suitable for narrower reports with a few columns and a larger value for wider reports. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Watermark: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Text entered into this field will be rendered diagonally on the first page of the PDF in a large outline font. This may be useful to add text such as DRAFT across the front of the PDF. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Download as XML file | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This option allows the User to create an XML file of the report data,
which contains an internal DTD. The User is allowed to
define their own root tag, and a tag for the record level data. The tags for each field will be
the column titles that are entered in the Note: It is up to the User
to provide column titles using the As with the CSV file creation, it is a WYSIWYG approach to creating the data, with the exception that break information and blank lines will not be included in the output. All HTML tagging is stripped out of the output, and the characters, <, >, &, ' and " are replaced with their XML equivalents. Be careful with "Breaks" in the report output where data outlining is checked. This will cause blank data entries to be created for the outlined fields. Remember, What You See, Is What You Get. A report that looks like this: |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Will produce an XML file that contains: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
<?xml version='1.0' encoding='ISO-8859-1'?> |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| E-mailing output | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This option allows output to be |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Report pages: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This option specifies the scope of the amount of data that will be output. If the "Displayed" option is selected, then the output content will only contain what is in the currently viewed page set. If "Whole report" is selected, then all the data associated with the report will be output. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sending charts: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
If charts or graphs are included in the output, they can be sent as attachments or
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
The safest approach to sending charts or graphs is to send them "As attachment".
This is not as convenient for the recipient, but it does eliminate the possibility that the image
may have been deleted from the originating server and provides the widest compatibility with
the myriad of |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| E-mail distribution | ||||||||||||||||||||||||||||||||||||||||||||||||||||
This distribution option is only available if the report data contains at least one
Distribution When distributing e-mail, QLR Manager will attempt to use a direct connection to the SMTP
mail server as defined in your environment's php.ini file. This is usually a server of localhost
and port 25. In some situations, the direct socket connect method may not work correctly. The
socket connection method can be bypassed by adding the phrase "useSocket = No" to
the bottom of your qlr.ini file. QLR Manager will then use a standard method for distributing
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sending charts: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
If charts or graphs are included in the output, they can be sent as attachments or
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
The safest approach to sending charts or graphs is to send them "As attachment".
This is not as convenient for the recipient, but it does eliminate the possibility that the image
may have been deleted from the originating server and provides the widest compatibility with
the myriad of |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Creating a QLR Widget | ||||||||||||||||||||||||||||||||||||||||||||||||||||
A QLR Widget is an HTML link that can be used to allow users to gain direct access to a Query, Macro, User Menu or Form. QLR Manager produces the HTML that can be copied and pasted into an existing web page. The HTML is formatted as an HTML anchor tag with href, title and target attributes: <a href="WidgetURL" title="QLR Linked Report" target="qlrwidget">click here</a> |
||||||||||||||||||||||||||||||||||||||||||||||||||||
When the link is executed, it takes the User directly into QLR Manager, either displaying the results of the Query, Macro, User Menu, or Form. The QLR connection is established using the logon ID, logon password, database reference, and database server reference that is active at the time the widget is created. The connection information is passed to QLR Manager as the encrypted part of the widget link. Although the connection ID and password are encrypted in the link, it is still prudent to use an ID with limited QLR Manager authorities and does not have update authority to the database when creating the QLR Widget, unless it is a Form Widget which will require DELETE, INSERT or UPDATE authority depending on the type of form. If a widget is created for a query or macro that has query variables, the values of those variables are displayed when the widget is being created. The author of the widget can choose to change the values that will be used when the widget is executed, or leave the values as blank. When left blank, QLR Manager will prompt the User of the widget for input values when the widget is executed. It is also possible to set the default value for a query variable and still allow the User to change that default value. This is accomplished by checking the Show checkbox found next to the Query Variable Value text input field. If a value is provided and Show is not checked, the Query Variable will not be presented to the User to change the value. This allows for the creation of very flexible widgets. Widgets for queries are created using either Report Tools or Output Tools. The only place that widgets
can be created for Macros, Menus and Forms is after logging on to the
Macros · Menus · Forms
suite from the Depending on which type of widget is created, the resulting output will have access to either the Report or Output Tools. However, for security reasons, a widget cannot be created from within a widget. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Window open target: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A widget can be defined to open in either the existing browser window when the link is executed or open in a new browser window. When defined to open in a new window, the target name for the new window is set as target="qlrwidget". A new window contains a frameset comprised of a header frame, a message frame, and the main content frame. The header frame includes either the Report Tools or Output Tools option, depending on the type of output. If it is desired to have various widget links open in separate browser windows, the widget target attribute can be manually edited to change the name of the target="value" to something different for each link. Javascript can also be used to create a pop-up window with specific features and is described below. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| HTML tag type: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Widgets can be created as either an HTML <a href> tag or an <iframe> tag. When created as an href tag, a text link is displayed that must be clicked in order to execute the widget. An iframe is an in-line frame and that may be more suitable for some applications, such as presenting report output in-line within a web page. The content of the iframe is loaded at the same time the web page is loaded. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Output header text: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
When a new window is opened, the "Output header text" which appears at the top of the window in the blue header bar can be specified when the widget is created. The default text that will appear in this area is "QLR Linked Report". This can be changed or omitted entirely be clearing the value in this input field. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Text for widget link: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
The link text that will appear within the HTML href tag is defined in the "Text for widget link" input field. An HTML image tag can also be entered to allow the link to be associated with an image. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Optional password: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
If a value is provided in the optional password field, the User is prompted to supply the password when they execute the Widget. QLR Manager prompts the User by presenting the Query Variables panel. If there are other query variables for which the User must provide input, the password field will appear at the top of the Query Variable panel. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Editing a widget link to add query variable values: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
When developing customized applications, it may be desirable to create a widget link and
add specific values for query variables to be used when that link is executed. This can be
accomplished by adding the query variable name prefixed with r000 (zeros), such as
r000custnum. Please note that the query variable names should be "URL encoded"
to work properly. For example, a query variable name that contains a space, such as
http://www.mysite.com/qlr/reportwin.html?r000sales%20region=northwest&Action=qlr_new&isW=yes& formname=query &qlr_linkid=V1RKb2JGa3ljMmRpUnpscVdWZDRiMkl6VGpCWVVYZ1SlIzUm9aRTZVZwRFFuaGlTRXAwV1ZjMW http://www.mysite.com/qlr/reportwin.html?Action=qlr_new&isW=yes&
formname=query &qlr_linkid=V1RKb2JGa3ljMmRpUnpscVdWZDRiMkl6VWVVYZ1SlIzUm9aRWhTZVZwRFFuaGlTRXAwV1ZjMW
Another way of passing a variable to pages that can process php requests (such as when using Drupal, and the "Input format" is set to allow PHP code), is to embed php code to processes either an HTML POST or GET argument. The following is an example of placing a widget within a page called showme.php, where the start date is being passed as a GET variable. The requesting URL is showme.php?r000start_date=2007-10-09. The widget code within showme.php would be as follows to process the incoming GET variable. Notice that the php code even checks to make sure that the URL string contains the variable "r000start_date". http://www.mysite.com/qlr/reportwin.html?Action=qlr_new&isW=yes&
formname=query &qlr_linkid=V1RKb2JGa3ljMmRpUnpscVdWZDRiMkl6VWVwRFFuaGlTRXAwV1ZjMW
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Javascript pop-up window: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Javascript can be used to create a pop-up window to load the QLR Widget. This will require some manual editing of the widget link to add an onclick event to call the Javascript window open method: onclick="window.open(URL,windowName[,windowFeatures]);return false" |
||||||||||||||||||||||||||||||||||||||||||||||||||||
Since Javascript must be enabled in the User's browser for the onclick event to be recognized, the addition of the onclick event without altering the standard href and target attributes will allow the link to be accessed without Javascript. With Javascript enabled, the use of the return false at the end of the onclick event will cancel the normal href action and load the link into the window opened by Javascript with the specified features. The following is an example of the modification to the QLR Widget link to use this Javascript method. The manual addition is in (blue). The entire <a href=...>click here</a> tag must be kept on one line in the HTML page: <a href="WidgetURL" title="QLR Linked Report" target="qlrwidget"
onclick="window.open(this.href,'qlrwidget','top=100,left=100,width=300,height=200, Note: The "WidgetURL" is the long encoded string that follows the <a href= attribute in the widget link and must be substituted above. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
To specify a window feature, add the desired value to the windowFeatures arguments as feature=1(true) or feature=0(false), as illustrated by the use of resizable=1,scrollbars=1 in the above example. Below are some descriptions of the more common Javascript window.open features. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saving data to a Table | ||||||||||||||||||||||||||||||||||||||||||||||||||||
QLR Manager supports the saving of report data to a table. This works with both Standard and Table Layouts. This option is not available for Pivoted Layouts. This feature uses a WYSIWYG approach to save the data. For example, if the report data is in a Table Layout that produces 20 columns of data, the saved data will be in a format that looks like the Table Layout and will have 20 columns. The column names in the new table will be based upon the report column names provided in the Layout. The saved data only includes rows of report data. It does not include Break data or Final summary information. The data can be saved "cross database", meaning a query can be executed in one database engine such as SQL Server, and the data can be saved in a table in a different database engine such as Oracle. QLR Manager will attempt to map the column data type from one database engine to the next, meaning that character data will be saved as character data, numeric data will be saved as numeric data, etc. When saving data, the User must provide a Table Name. If the destination table already exists, the User is given the option to choose to add the data to the existing table, or to replace the existing table. The connection credentials to the destination database engine must also be provided. These include specifying the database engine from the list of QLR supported databases in the install environment, the User ID and Password. The Server reference must also be provided. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| In addition, the destination database is also referenced. This behaves differently, depending upon the destination database engine: | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||