Static form data
To add static form data to a Web Connection part, do the following:
1. Create an HTML file with <INPUT> tags. For example:
<HTML>
<HEAD>Hello and Goodbye World Form</HEAD>
<BODY>
<FORM METHOD="POST">
<INPUT TYPE="text" SIZE="20" NAME="HelloText">
<INPUT TYPE="text" SIZE="20" NAME="GoodbyeText">
</FORM>
</BODY>
</HTML>
2. Generate an HTML file wrapper class named HelloFormWrapper for the HTML file. See Setting up the HTML File Wrapper.
3. Create a new Web Connection part of class HelloWithForm.
4. Delete the Page part.
5. Add a part of class name HelloFormWrapper.
6. Place the HTML file wrapper part, HelloFormWrapper1, within the free-form surface.
7. Select Form Data from the Web Connection category. Add the Form Data part to an empty area within the free-form surface.
8. Select the Form Data part and open the Properties window to show the Form Data part's properties.
9. Select the pagePart property. In the Value field, select HelloWithForm to specify the class of the Form Data part.
10. Close the Properties window.
The Form Data for the HelloWithForm part now contains the form data of the HTML file that was wrapped by the HTML file wrapper.
Last modified date: 02/15/2015