KB Article #51769
Web Plug-in URL Parameters
How to execute a request (with TrkParameters criteria should be matched) through a Web Plug In URL from a Dashboard viewer?
Resolution
For executing a request(with TrkParameters criteria should be matched) through a Web Plug In URL from a Dashboard viewer follow the below mentioned steps:
1 Create a Tracked Object with two user attributes "var1" as datatype "variable string" and num1 as datatype "integer".
2 Create an assisted request and apply "TrkParameter" criteria on these user attributes. Go to the "criteria" tab and apply criteria on var1 and num1. An input wizard opens up for entering value to a particular attribute. Choose the "Parameter" tab in the input wizard and then choose "radio button" with label as "User Parameter value". Now write the question for "var1" as "Enter_three_alphabets" and for num1 as "Enter_three_digits".
After applying criteria the SQL query of assisted request should be like
SELECT EventId AS RefEventId,ObjectId AS RefObjectId,InternalState,EventDate,EventId,EventTime,var1,num1
FROM TrkTable(57128_A,Current)
WHERE var1='TrkParameter(Enter_three_alphabets ?,57128_A,var1)' AND num1=TrkParameter(Enter_three_digits ?,57128_A,num1)
ORDER BY EventId DESC
3 Now send some events/messages to the Sentinel database. For example through UA we send as:
%TRKUT% SendEvent OBJNAME=57128_a, var1=aaa, num1=333
%TRKUT% SendEvent OBJNAME=57128_a, var1=bbb, num1=444
%TRKUT% SendEvent OBJNAME=57128_a, var1=aaa, num1=333
%TRKUT% SendEvent OBJNAME=57128_a, var1=bbb, num1=444
4 Now use the below mentioned "Web Plug In" URLs from the dashboard viewer to execute the assisted request:
http://item-42595:21309/SentinelMonitoring.html?login=Admin&pw=Admin&request=Company.dar.57128.57128_A(Enter_three_alphabets ?=aaa,Enter_three_digits ?=333)
or
http://item-42595:21309/SentinelMonitoring.html?login=Admin&cryptedpw=QnhWZ3p6TVJCbFZGbg==&request=Company.dar.57128.57128_A(Enter_three_alphabets ?=aaa,Enter_three_digits ?=333)