The text of a manual · part 5 of 14
Data Collection Browser Client User's Guide: Chapter 2 - Developing and Testing Your Application, pages 28 to 36
Pages 28 to 36 of 107, from Data Collection Browser Client User's Guide
The original document is the PDF (897 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 28
Data Collection Browser Client User’s Guide
Headings (continued) Example:
<H1>containers</H1>
The device displays “containers” in uppercase letters with a blank line before and after the heading.
Image Syntax: Attributes: Notes:
2-10
<IMG> alt Since some device’s screens cannot render graphics, dcBrowser displays the alt text.
Page 29
Developing and Testing Your Application
2
Image (continued) Example:
<IMG SRC=”TRIANGLE.GIF” ALT=”*”>1998 Player Roster
The device displays the asterisk (*) instead of the TRIANGLE.GIF graphic.
Input Syntax: Attributes:
Special Attributes:
<INPUT TYPE=> hidden int password reset submit text cursor
Positions the cursor in the last field containing the cursor attribute.
transmit
Creates an input field that is automatically submitted when it is filled with bar code data from the scanner. For more information, see “Using Auto-Transmit Fields” later in this chapter.
key=
Assigns a function key to be associated with the input type when links are enabled. Using this attribute overrides the default function key assignments.
scanonly
Accepts only scanner input for the field.
2-11
Page 30
Data Collection Browser Client User’s Guide
Input (continued) dti_capture= Puts data in a field based on data type identifier. If a field is tagged to accept only scanned data with a certain set of leading characters, the data is routed to that field when you scan the bar code even if the cursor is not in that field.
Notes:
dti_strip
Removes the data type identifier identified by the dti_capture from the scanned bar code.
noscan
Disables scanned input for the field. This field accepts input from the device’s keypad.
Use the value attribute to set a default value for the input field that is specified by the name attribute. The input field cannot extend beyond the right edge of the device’s screen. dcBrowser does not support viewporting. The MAXLENGTH field supports scrolling fields. You can set MAXLENGTH to any number, but only the number set as SIZE will show at a time.
Example:
<INPUT TYPE=”text” NAME=Birthday SIZE=8 MAXLENGTH=8 TRANSMIT>
When you scan bar code data into the B-DAY field, the device automatically sends the screen data to the Web server.
2-12
Page 31
Developing and Testing Your Application
2
Meta Syntax: Special Attributes:
Notes:
<META> id=
Sets the identification that appears in the dcBrowser gateway configuration screen in the Custom ID column. You can use this identification to identify a specific relationship between that device and the server. The identification can be any alphanumeric and special characters.
You must set the SHOW_USERID parameter in DCB.INI. For help, see the online help for the dcBrowser gateway.
Paragraph Syntax:
<P>
Attributes:
None.
Notes:
The dcBrowser gateway puts a blank line before a paragraph and left justifies the paragraph. Multiple paragraph tags have no cumulative effect.
Print Syntax: Special Attributes:
<ITCPRINT>…</ITCPRINT> baud=
Sets the baud rate on the device to allowed values, for example 9600. For valid baud rates, see the user’s manual for your device.
data=
Sets the data bits to 7 or 8. If this attribute is not used, the data bits are set to 8.
flow=
Sets the flow control. Valid values are: D X N
DSR with XON/XOFF XON/XOFF None (default)
message=
Defines the message displayed on the device screen while printing. Use HTML code for non-alphanumeric characters. The default message is “RS-232 PORT IN USE PLEASE WAIT.” parity=
Sets the parity. Valid values are: O E N stop=
Odd Even None (default)
Sets the stop bits to 1 or 2. The default is 1.
2-13
Page 32
Data Collection Browser Client User’s Guide
Print (continued) wait=
Note:
Causes wait for clear to send (CTS). Use this attribute when communicating with a modem. The default is no wait. You can set the device to wait from 00 to 99 seconds.
Use the Print tag to pass control and data messages from the Web server to a printer attached to the COM port of a Trakker Antares terminal running the dcBrowser client. Check with your Intermec sales representative for the availability of the Print feature with other products. For the Print tag, you must have a printer connected to the serial port of your device. For more information, contact your Intermec sales representative. The device will send whatever is between the Print tags to the printer (see the example).
Example:
<ITCPRINT>Company Name for Label Heading</ITCPRINT> The printer attached to the device prints “Company Name for Label Heading.”
Table Syntax: Attributes: Special Attributes:
Notes:
<TABLE>…</TABLE> border scrollable= Determines how many table rows (<TR>) are displayed on the device’s screen at a time. If the table contains more rows than this setting, you need to decide how a user will scroll through the rows. up=
If links are enabled, this attribute assigns a function key to be associated with scrolling to the previous section of the table.
down=
If links are enabled, this attribute assigns a function key to be associated with scrolling to the next section of the table.
If you have a scrollable table and links are disabled, F5 is hard-coded to scroll to the previous section of the table and F6 is hard-coded to scroll to the next screen. You must add HTML tags to your Web page to provide this information for your user. The width of a column in a table is the size of the largest cell in the column. This includes the <TH> tag. Column data is flattened to a single row. That is, data does not wrap within a column cell. The cell width is widened to accommodate the data. Rows are automatically wrapped. Using the break tag <BR> in a table tag has no effect.
2-14
Page 33
Developing and Testing Your Application
2
Table (continued) Example:
<TABLE BORDER SCROLLABLE=6 UP=”F5” DOWN=”F6”> <TR><TD ALIGN=LEFT>QB<TD>Moon <TR><TD ALIGN=LEFT>QB<TD>McNair <TR><TD ALIGN=LEFT>RB<TD>Bettis <TR><TD ALIGN=LEFT>RB<TD>Bennett <TR><TD ALIGN=LEFT>WR<TD>Thigpen <TR><TD ALIGN=LEFT>WR<TD>Johnson <TR><TD ALIGN=LEFT>TE<TD>Sharpe <TR><TD ALIGN=LEFT>K<TD>Stoyanovich <TR><TD ALIGN=LEFT>D<TD>Giants <TR><TD ALIGN=LEFT>WR<TD>Reed <TR><TD ALIGN=LEFT>RB<TD>Dunn <TR><TD ALIGN=LEFT>RB<TD>Levens </TABLE>
Since the scrollable attribute is set to 6, the device only displays the first six lines of the table. If you press F6, the next lines appear.
Example Web Page and HTML Code The RFSIGN.HTM file contains the HTML code for the home page of the sample application. This table shows two different ways that you can see the home page. If you run the sample application using the simulator, the simulator will display a Web page similar to the screen on the left. If you use a Web browser to open the RFSIGN.HTM file, your browser will display a Web page similar to the screen on the right. To set up the sample application and Web pages 1. Copy the .EXE files from the \INTERMEC\DCBROWSER\EXAMPLES\CGI_BASED\ CGI\BIN directory to the CGI-BIN directory for your Web server.
2-15
Page 34
Data Collection Browser Client User’s Guide
2. Copy the .HTM files from the \INTERMEC\DCBROWSER\EXAMPLES\CGI_BASED\ HTML directory to the HTML directory for your Web server. Simulator
Web Browser
Note: To run the sample application, you must disable the links feature. After you open the Web page, you can use either a text editor or a Web browser to view the HTML code. If you use a Web browser other than Internet Explorer or Netscape Communicator, see the documentation that came with your Web browser. To use a text editor to view the HTML code 1. Choose Open from the File menu. 2. Go to the \INTERMEC\DCBROWSER\HTML directory, and then choose RFSIGN.HTM. 3. Click OK. To use Internet Explorer to view the HTML code •
2-16
Choose Source from the View menu.
Page 35
Developing and Testing Your Application
2
To use Netscape Communicator to view the HTML code •
Choose Page Source from the View menu.
The RFSIGN.HTM file is printed next.
RFSIGN.HTM <HTML> <HEAD> <TITLE>RF SIGN ON</TITLE> </HEAD> <BODY> <CENTER> <H1>SIGN ON</H1> <FORM METHOD=POST ACTION="/cgi-bin/cgi.exe"> <BR> <BR> <TABLE> <TR ALIGN=LEFT> <TD ALIGN=RIGHT>OPERATOR: <TD ALIGN=LEFT><INPUT TYPE="text" NAME=UserID SIZE=8 MAXLENGTH=16> <TR ALIGN=LEFT> <TD ALIGN=RIGHT>PASSWORD: <TD ALIGN=LEFT><INPUT TYPE="Password" NAME=Password SIZE=8 MAXLENGTH=16> </TABLE> <BR> <BR> <TABLE BORDER> <TR> <TD ALIGN=CENTER> <TD ALIGN=CENTER> <TD ALIGN=CENTER> <TD ALIGN=CENTER> <TR> <TD ALIGN=CENTER>F1> ENTER <TD ALIGN=CENTER> <TD ALIGN=CENTER> <TD ALIGN=CENTER> </TABLE> <INPUT TYPE="hidden" NAME="FormName" VALUE="RfSign.htm"> <INPUT TYPE="submit" NAME="Action" VALUE="F1"> <INPUT TYPE="submit" NAME="Action" VALUE="F2"> <INPUT TYPE="submit" NAME="Action" VALUE="F3"> <INPUT TYPE="submit" NAME="Action" VALUE="F4"> <BR> <INPUT TYPE="submit" NAME="Action" VALUE="F5"> <INPUT TYPE="submit" NAME="Action" VALUE="F6"> <INPUT TYPE="reset" NAME="Action" VALUE="F7"> <INPUT TYPE="submit" NAME="Action" VALUE="F8"> </CENTER>
2-17
Page 36
Data Collection Browser Client User’s Guide
RFSIGN.HTM (continued) </FORM> </BODY> </HTML>
Advanced Features This section explains some features of dcBrowser that may not be standard for HTML applications.
Using the Links Feature When you enable the links feature, dcBrowser assigns the Enter key (EN>), and then it assigns function keys to anchor tags and input type="submit" tags. Up to ten function keys are assigned to links in the order they are encountered in the HTML file. Only http links are supported, and you can control the function that is assigned. For example, <INPUT TYPE="submit" VALUE="Help" NAME="HlpScrn1">
In a normal Web browser, a button that contains the name “Help” appears. When the user clicks this button, the form-processing sequence begins and the application tells the Web server HlpScrn1=Help. If you enable the links feature, the device displays a function key, a greater-than sign, and the value that is the name of the button in a normal Web browser: F1>Help
When you press F1, the form-processing sequence begins, and the application tells the Web server that HlpScrn1=Help (just as it would if the anchor was selected with a mouse in a standard browser). If you disable the links feature, the value is ignored, and the name is whichever function key was pressed. The application tells the Web server that Action=function key. That is, if you press F1, the application tells the Web server that Action=F1. The application handles function key responses.
Using Auto-Transmit Fields dcBrowser supports using auto-transmit fields, and it supports using the scan-ahead and type-ahead features to enter data. Although not standard for HTML applications, these features are most useful for repetitive screens with long refresh rates, such as a timecard system in which people scan a badge as they walk through a door.
2-18