replaceInTempQ

Description

This mobile device JSP function replaces the value in TempQ for a given key. The TempQ utilities store name/value pair information on one page in the session and provide methods for accessing them on the subsequent screens.

Syntax

public void replaceInTempQ(String keyName, String keyValue) throws Exception

public void replaceInTempQ(String keyName, String keyValue, String newKeyValue) throws Exception

public void replaceInTempQ(String keyName, String keyValue, Map m) throws Exception

Input Parameters

keyName - Required. Name of the key in the TempQ that is being replaced.

keyValue - Required. Value of the key in the TempQ that is being replaced.

newKeyValue - Optional. The new value of the key in TempQ that replaces the old value.

m - Optional. Map that should replace the existing keyValue.

Example

The following example shows how this function can be used to change the value of RecordCount from "1" to "resultMap":
replaceInTempQ("RecordCountResult","1",resultMap);