WAM005 - Create Your First WAM
- To create your first Web Application Module (WAM) and become familiar with the LANSA Editor's Design view.
- To create a WebRoutine in your Web Application Module. You will create a WebRoutine that will use different weblets to call itself. It will display a different message depending on which weblet is used.
- To understand the basics of how the WEB_MAP command is used within a WebRoutine (covered in much more detail in WAM010 - Using WEB_MAPs).
- To introduce you to re-entrant programming.
- To compile a Web application that was created using a WAM.
- To understand the compile/generate cycle of WAM development.
To achieve these objectives, you will complete the following steps:
Step 1. Start Visual LANSA
Step 2. Create a WAM
Step 3. Create the ReentryTest WebRoutine
Step 4. Compile the WAM
Step 5. Open the Design view
Step 6. Editing
Step 7. Use a Weblet
Step 8. Make STDRENTRY visible for testing
Step 9. Test the WAM
Step 10. Hide STDRENTRY
Before you Begin
In order to complete this exercise, the demonstration Personnel System must have been installed in this partition.
In order to create a WAM:
- You must use an RDMLX Enabled Development partition.
- Field Types such as Date and Time must also be enabled in the partition.
- The partition must be web enabled.
- You must have a valid LANSA for the Web license to develop with WAMs.
For details, refer to the LANSA for iSeries User Guide and the Web Administrator Guide.