Using the AbtHtmlFileWrapper subclass
Now you can use the HelloFileWrapper class to build a Web Connection part that uses an instance of the file wrapper. This part will substitute two text strings for the attributes HelloText and GoodbyeText of the file wrapper HelloFileWrapper1.
1. In the Organizer, create a new part. For Part type, select Web Connection part.
2. Open the Composition Editor on the new part. You should see a single subpart, a Page.
3. Delete the Page part.
4. Select Add Part from the Options menu.
a. Specify HelloFileWrapper for the Class Name.
b. Select OK to add the part and close the Add Part window.
5. Place the HTML file wrapper, HelloFileWrapper1, within the free-form surface.
6. Go to the Web Connection category and select Text. Place the Text part within the free-form surface.
7. Open the settings of the Text part. Set the partName to read TextforHello. Set the object to read Hello, World!
8. Make a connection from the HelloText attribute of the HelloFileWrapper1 part to the string attribute of the Text part.
9. Go to the Web Connection category and select Text. Place the Text part within the free-form surface.
10. Open the settings of the Text part. Set the partName to read TextforBye. Set the object to read Goodbye, World!
11. Make a connection from the GoodbyeText attribute of the HelloFileWrapper1 part to the string attribute of the Text part.
12. Save the part. Select the test button,
, to test the part.
13. After the page loads, the text Hello, World! and Goodbye, World! appears in your Web browser at the location of the substitution tags that you specified in the HTML document.
Last modified date: 06/24/2018