Send filter values through URL strings
You can provide filter parameters for a View via a URL, which is used to launch the Viewer in a certain state. For example, the filters can be passed as parameters in the URL. Insight uses the following prefixes for parameters.
-
Gr
for a Group -
Dim
for a Dimension -
Val
for a Value
As an example, you can configure a View to use the following:
-
MyGroup1
as a Group -
ShipCountry
as a Dimension -
USA
as a Value -
MyGroup2
as a Group -
Boise
as a Value
-
In the parameter name, specify the group using the
Gr prefix.
Example: Gr1=MyGroup1
-
To specify the dimension, use the group key name
Gr1 and the prefix
Dim.
Example: Gr1Dim1=ShipCountry
-
To enter the value, use the group name, dimension key name, and
the prefix
Val.
Example: Gr1Dim1Val1=USA.
The full URL for a View with parameters may look similar to this example:
http://127.0.0.1/view/?ProjectId=11e172c2-fa42-40b6-9bad-4c2157e37ae6&ViewId=4ee45163-7092-4379-985a 48eb816a771f&ViewName=Chart_BreakDown&(View URL)UserID=User1&RoleID=Role1&(HTTP authorization parameters) Gr1=MyGroup1&Gr1Dim1=ShipCity&Gr1Dim1Val1=Boise&Gr2=MyGroup2& Gr2Dim1=ShipCountry&Gr2Dim1Val1=USA(six filter parameters).