cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to pass parameter to tag query?

Former Member
0 Likes
180

Hi,

I want to get the value of a tag at a specific time (like 10/27/09 15:29:59), I need to give this time dynamically. How can I get this? Is it possible to pass start and end time through param to tag query?

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Likes

Assuming your Tag query source supports History mode, then just map your desired time into the query as the StartDate parameter (the string format of the datetime will need to match the format of the query template's DateFormat parameter). You can test this easily in the Workbench. I would also set the RowCount of the query to 1 or 2 and keep the duration of the query short, since you only need the first value.

Former Member
0 Likes

Subin,

Jeremy pointed you in the right direction. Here are some quick links for the [format |http://help.sap.com/saphelp_xmii120/helpdata/en/45/34540576b74002e10000000a155369/content.htm]and [query parameters|http://help.sap.com/saphelp_xmii120/helpdata/en/45/344f9376b74002e10000000a155369/content.htm]...

Kevin

Former Member
0 Likes

Thanks a lot Jeremy & Kevin...

Answers (0)