iTP Active Transaction Pages (iTP ATP) Programmer's Guide

iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
C-1
C
HTML Forms Generator
The HTML Forms Generator is a sample ATP application and a useful ATP script-
development tool.
When you use the Forms Generator, you specify the name of a DDL dictionary and
select the message layouts for request and reply messages. (You can choose multiple
reply formats, each for a different reply code or range of reply codes.) In response, the
Forms Generator produces an HTML form that sends a request to a NonStop TS/MP
application and retrieves the reply.
A form produced by this tool is intended not as a production script, but as a starting
point. You add data validation and security logic appropriate to your application.
As a sample application, the Forms Generator demonstrates the use of many ATP
objects, including the atp.dictionary, atp.field, atp.buffer,
atp.transaction, and atp.request objects and several ATP global functions,
including atp.print and atp.quit.
This appendix includes the following subsections:
Installing the Forms Generator on page C-1
Running the Forms Generator on page C-1
Choosing a DDL Dictionary on page C-2
Choosing Request and Reply Messages on page C-2
Finishing the Generated Page on page C-4
Usage Considerations on page C-4
Installing the Forms Generator
The HTML Forms Generator and a sample dictionary are installed automatically when
you run the ATP installation script. You must create and populate any other dictionary
you wish to use.
Running the Forms Generator
To run the HTML Forms Generator, navigate to it from the ATP home page
/examples/index.html.