Using WEB_MAP FOR(*NONE) and WEB_MAP FOR(*INPUT) in WAMs

Date:24 July 2006
Product/Release:LANSA for the Web V11.0
Abstract:Using WEB_MAP FOR(*NONE) and WEB_MAP FOR(*INPUT) in WAMs
Submitted By:LANSA Technical Support

The WEB_MAP command is used to declare the field and list data to be mapped between the Presentation Layer and your Webroutines. The FOR parameter defines the direction of these mappings.

Fields and lists declared with WEB_MAP FOR(*NONE) defines that their values are not to be mapped in or out of the Webroutine. This attribute is used for session state data where the value is only used in application logic.

Fields and lists declared with WEB_MAP FOR(*INPUT) defines that their values are only to be mapped in to the Webroutine and are not to be mapped out of the Webroutine.

Fields and lists declared with WEB_MAP FOR(*OUTPUT) defines that their values are not to be mapped in to the Webroutine and are only to be mapped out of the Webroutine.

Fields and lists declared with WEB_MAP FOR(*BOTH) defines that their values are to be mapped both in and out of the Webroutine.

Prior to V11.3, the *NONE and *INPUT values of the FOR parameter were not enforced correctly so that fields and lists declared with these FOR parameters had their data values mapped out of the Webroutine.

Once V11.3 is applied, the FOR parameter values are strictly enforced so that only fields and lists with WEB_MAP FOR(*OUTPUT) and FOR(*BOTH) have their data values mapped out of the Webroutine so that they are available to the Presentation Layer. This may have an impact on your existing WAM applications if you have declared fields and/or lists with WEB_MAP FOR(*NONE) or WEB_MAP FOR(*INPUT) but the values are required to be mapped out from your Webroutines.

Refer to the Web Application Modules (WAMs) Guide section 1.4.2 for a further explanation of the WEB_MAP command.