Line Data Applets
Published 18 November 2004
Authors: Wei-Dong Zhu
This document discusses DB2 Content Manager On Demand line data applets.
This document covers the following topics:
- Introducing ODWEK line data applets
- Setting up ODWEK to use the new line data applet
- Launching the new line data applet
- What's new in line data applet Version 2
Introducing ODWEK line data applets
A line data applet is a Java™ applet that enables you to view line data on your Web browser as line data, instead of having the server convert it to HTML and displaying as HTML.
IBM DB2 Content Manager OnDemand Web Enablement Kit (ODWEK) ships with two line data applets, Version 1 and Version 2. Both line data applets are doing the same thing. The new one, Version 2, is written based on Swing technology. Swing gives the new line applet data the professional look and feel, and enables the applet to provide a range of new components and controls.
You have choices when it comes to viewing line data. You can view the line data on a Web browser using one of the applets or view the line data as ASCII or
native mode by setting the LineView parameter in the arswww.ini file to ASCII, applet, or native.
There are two line data applets in the /applets directory:
ODWEK uses the older line data applet by default. To use the Version 2 applet, you must have JRE 1.4.1 or higher to use the ODLineDataViewer2.jar. In addition, you need to edit the arswww.ini file by adding the following line in the default browser section of the arswww.ini file:
Launching new line data applet
To launch the new line data applet:
- Launch a browser and go to the ODWEK home page by enter the following URL:
- Sign on to the OnDemand server
- On the "Select a folder window", select a folder that has some line data.
- Search for a line data file you want to display.
- Select one of the line data files from the hit list.
ODWEK opens the line data file in the new line data applet. If you do not select a line data document, the line data applet will not launch.
What's new in the line data applet Version 2
The following figure shows the new line data applet. This new applet is built on Java Swing technology, which has a much more user friendly interface and has richer browser user interaction capabilities. Again, in order for this new applet to work, you must have JRE 1.4.1 or higher installed.
The differences between the old line data applet and the new are the following:
- With the Version 2 applet, there are the same twelve icons across the tool bar as with the older applet, but some of the functions are enhanced. For example, the toolbar now can be floated — you can move it wherever you want to on the screen for your convenience.
You can have the tool bar on the top, right, bottom, left or anywhere in the window.
To move the tool bar, just click the area next to the print icon, hold down the mouse button, and drag the tool bar to your new location.
- The printing menu for Version 2 is different from Version 1. There are also more features that come with the later version.
With the new printing menu, you can:
– Set the page margins
– Set the page orientation (portrait or landscape)
– Print the current page
– Print preview
– Remember the changes you have made when you change the margins or orientation
The following figure shows the printing menu with Version 1 of the line data applet.
The following figure shows the printing menu with Version 2 of the line data applet.
Change the margins and orientation, and click Print Preview to see a preview of what your print-out would look like. The following figure shows a print preview
What happens if you choose not to use the line data applet?
When you do not set your system to use the line data applet, the line data as ascii will be converted to HTML and be displayed similar to the following figure:
Line data as "native" will ask you to download the file "as is" as in the following dialog box:
This material has not been submitted to any formal IBM test and is published AS IS. It has not been the subject of rigorous review. IBM assumes no responsibility for its accuracy or completeness. The use of this information or the implementation of any of these techniques is a client responsibility and depends upon the client's ability to evaluate and integrate them into the client's operational environment.
Follow IBM Redbooks
Follow IBM Redbooks