Objectives

This exercise initially shows how session management operates using a single WAM.

WAM iiiSessionMng demonstrates how various WebRoutines within the same WAM can manipulate and share data that is automatically stored on the server. There are a number of key concepts to understand when implementing session management.

Begin_Com Role(*EXTENDS #PRIM_WAM) Layoutweblet('iiilay01') Sessionstatus(Active)

Web_Map For(*none) Fields(#empsave #empdata) Options(*PERSIST)

The For(*none) keyword value means the fields are not mapped to and from the web page.

For more details refer to WAM Session Management.

Begin_Com Role(*EXTENDS #PRIM_WAM) Layoutweblet('iiilay01') Sessiongroupname('MYSESSION') Sessionstatus(Active)

Description of WAM iiiSessionMng

The Search WebRoutine web page will look like the following:



The WebRoutine search will build and display a list of employees, searching the file by surname. Each search adds entries to a working list that is displayed and a second persistent working list which is stored on the server.

To meet these objectives you will complete the following:

Step 1. Create Session Management 1 WAM

Step 2. Retrieve and Store Employee Details

Step 3. Create Session Management  2 WAM

Step 4. Test the Session Management Application

Summary

Before You Begin

You should complete all preceding exercises in this workshop.