The TableReader applet is an "Infobus-aware" data access applet that reads the contents of a table within an HTML document. The contents are then posted to the InfoBus.
By default, the TableReader applet does the following when accessing HTML table data:
All of these tasks are done without need for a user interface. All data access parameters are supplied to the applet via HTML.
If need be, the applet can be also used with a user interface. This can be helpful for application debugging. With the user interface, you can enter values in fields to change the initial values supplies by the URL and Item_Number HTML PARAM tags.
The TableReader applet is derived from the HTMLReaderApplet class, which uses the ParseHTML class to process the HTML.
The TableReader Parsing Process
The TableReader begins by accessing the desired HTML document via a supplied URL as soon as it is initialized. The reading of the URL is done in a separate thread to support cancelling/time-out. The document is then parsed on a token-by-token basis.
The data read by the TableReader applet is placed on the InfoBus in a VectorDataSet, with each row representing one row of the table.
Embedding the TableReader Applet in an HTML Document
The following code example demonstrates how an instance of the TableReader applet is embedded in an HTML page. The APPLET tag is immediately followed by PARAM (parameter) tags that provide the configuration information for the applet.
<APPLET NAME="tableParse" CODEBASE="..\..\.." CODE="lotus.htmlparse.TableReader" WIDTH=200 HEIGHT=250>
<PARAM NAME="URL" VALUE="two_tables.html">
<PARAM NAME="item_Number" VALUE="2">
<PARAM NAME="search_for" VALUE="Fork">
<PARAM NAME="ReaderRequest" VALUE="TABLEREQUEST">
<PARAM NAME="allow_ui" VALUE="true">
</APPLET>
TableReader Applet Parameter Tags
The following parameter (PARAM) tags are available for configuring the TableReader applet via HTML:
HTMLInputName PARAM tag
Item_Number PARAM tag
Name PARAM tag
ReaderRequest PARAM tag
Search_For PARAM tag
allow_ui PARAM tag
URL PARAM tag
TableReader Applet Properties
The following properties are available for accessing the TableReader applet programatically:
ItemNumber property
Name property
SearchString property
URL property
TableReader Applet Methods
The following methods are available for accessing the TableReader applet programatically: