Web Connection User's Guide
This example shows how you can build a "front-end"
application from which you can select from several Web Connection sample
applications. This application consists of two parts:
- A part containing a simple form. This part displays a menu page
from which users can select which example they want to see.
- A router part, which does not generate any HTML itself. Instead, it
receives the request from the menu part and routes the request to the
appropriate sample.
- Create a new Web Connection part for the menu page. Call the part
MyWebSampleChooser. (You can also look at the prebuilt
sample, AbtWebSampleChooser.
- The menu page is a straightforward Web Connection form part. In the
Composition Editor, build the user interface as follows, using Form, Text,
Rule, and Push Button:

- In addition to changing the labels, also change the names of the push
button parts to the following:
- ToDoListButton
- AddingMachineButton
- ChatButton
- Save the part and close the Composition Editor.
- Create a new Web Connection part for the router page. Call the new
part MyWebSampleRouter.
- The router page will not generate HTML, so it does not require any Web
Connection visual parts. (Optionally, you can include a Page with an
error message, which will only be used if a user tries to connect directly to
MyWebSampleRouter by URL.) In the Composition Editor, delete the
default Page from the free-form surface.
- Add a Form Data part to the free-form surface.
- Open the settings of Form Data and specify MyWebSampleChooser
as the part containing the form.
- Add three Page Wrapper parts to the free-form surface. These parts
represent the three samples available from the menu. Change the names
of the Page Wrapper parts to the following:
- To-do List Wrapper
- Adding Machine Wrapper
- Chat Wrapper
- In the settings of To-do List Wrapper, specify
AbtWebSampleToDoList as the part containing the page.
- In the settings of Adding Machine Wrapper, specify
AbtWebSampleAddingMachine as the part containing the page.
- In the settings of Chat List Wrapper, specify
AbtWebChatList as the part containing the page.
- Connect the ToDoListButton clicked event of the Form Data to
the transferRequest action of To-do List Wrapper.
- Connect the AddingMachineButton clicked event of the Form Data
to the transferRequest action of Adding Machine
Wrapper.
- Connect the ChatButton clicked event of the Form Data to the
transferRequest action of Chat Wrapper.
- WebSampleRouterPart should look something like this in the Composition
Editor:

- Save the part and test it using the
button.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]