pjs.getRequestParm()
Â
This method returns the value of a GET parameter that is passed in to an alias call.
Parameters
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;
Â
Â