Page tree
Skip to end of metadata
Go to start of metadata

This method returns the value of a GET parameter that is passed in to an alias call.

Parameters

  1. String name of the GET parameter - returns a string value, or null if the parameter name is not valid.

Exception Handling

An Error instance will be thrown with the following properties:

  • message - The IBM i message text.
  • error - The message id.
  • help - The message help text.

Examples

// localhost:8081/requesttest?company=ProfoundLogic
 
function requesttest() {
  pjs.define("companyname", { type: 'char', length: 25 });
  companyname = pjs.getRequestParm('company');
  //companyname = "ProfoundLogic"
}
 
module.exports.run = requestrest;