IWS
also enables you to save screens in the HTML format. You cannot
create the HTML pages contained in the Web folder directly; instead they are
generated from pre-existing screens.
To create an HTML page, you must first create a
screen. Configure a screen as you usually would (create objects,
add properties, and so on) but keep in mind that this screen will
become a Web page. Save the screen as usual when you finish. Then,
with the screen still open, click Save
As HTML on the Application menu.
CAUTION:
The Web pages that are generated when you
click Save As HTML are
independent of the screen files from which they were generated.
Consequently, if you change that screen, the changes will not
appear on the Web page until you click Save As HTML again.
To view your Web pages during runtime, you must
first configure the project settings (
Thin Client on the Project tab of the
ribbon).
Figure 1. Project
Settings dialog — Web tab
- Open the dialog and type the IP address (from which
to run the project) in the Data Server
IP Address field.
- Type a value in the Send
Period (ms) field to specify the send period (in
milliseconds) used to exchange data between the Server and the Thin
Client stations.
- In the URL field,
enter the address of the project file using the following format:
http://IP address of the server/path from the server root to the directory containing your Web pages/project name.app
You can also enter a local file path using the
following format:
file:///volume name/path to the directory containing your Web pages/project name.app
- Click (enable) the following checkboxes if
applicable:
- Click the IP
Security button to open the IP Security dialog (see figure).
Use the parameters on this dialog to specify the range of IP
addresses for the computers that are allowed to access the project
as Thin Clients.
Figure 2. IP Security
dialog
When the Edit
pane parameters become active, type IP addesses in the From and To
fields to specify the IP address range. Use the Add and Remove buttons to move the IP addresses into
the IP Address Range list.
IWS permits the
computers listed in this pane to access the project as Thin
Clients
- To enable logging for the Thin Client, move to the
Log pane and click (enable)
the Enable checkbox and type a
file name into the Filename field
to generate a log file on the Thin Client station. You can use this
log file for debugging purposes.
- Click OK to close
the Project Settings
dialog.
Note: If you
change any of the Web information on the
Project Settings dialog, you must
re-verify the project for the new setting to take effect. To verify
the project, click
Verify on the
Home tab of the ribbon. (If you have any windows open in the
development system,
IWS prompts you close them before you verify the
project).
Also, because the Web pages display information from
the project through the Web server, you must be running the runtime
system, Web server, and the TCP/IP server to view your Web
pages.