Skip to content

getParamByName

This function gives you an easy way to get a query string parameter by name.

Syntax

getParamByName (name)

Arguments

name : string (required)

The name of the parameter.

Example

 
// Given a URL, http://hostname/calumo/api.mvc/reports/test?MyParam1=TestValue
// This snippet will set the variable paramValue to "TestValue"
 
var paramValue = report.api.getParamByName("MyParam1");