6.2.2 setParameter()

The setParameter() method inserts a parameter and its value into the SRPrincipal object. The sample below uses setParameter() within an SSO request filter:

HttpServletRequest hrequest = (HttpServletRequest) request;

HttpSession session = hrequest.getSession();

SRPrincipal principal = (SRPrincipal)session.getAttribute(RepletRepository.PRINCIPAL_COOKIE);

Principal.setParameter("State", new String[] {"NJ", "NY", "CT"})

A parameter value specified with setParameter() can be accessed in the following contexts:

In reports and Viewsheets via the parameter script keyword. (See parameter in Report Scripting and parameter in Dashboard Scripting.)

In a parameterized condition of a report data binding. (See Parameterizing a Condition in Report Design.)

In a parameterized condition on a Worksheet Data Block. (See Using a Parameter in a Condition in Data Mashup.)

In a parameterized condition on a Viewsheet component. (See Filter Conditions in Dashboard Design.)

When accessing the parameter in a condition (Viewsheet, Worksheet, or report), the name of the condition variable should exactly match the parameter name specified by setParameter().

<< 6.2.1 setProperty() © 1996-2013 InetSoft Technology Corporation (v11.5) 6.3 Use Case: Simulating User Sessions >>