getParamByName

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

Syntax

getParamByName (name)

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");