Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Comma Separated Tags from BLT?

Was reading the help documentation and noticed that there is a way to pass in comma separated tags to a query template:

TagName

One or more tag names to be queried

String Or String List

None

The name of a tag in the underlying data source. This parameter can be repeated multiple times in a URL if multiple tags are to be queried, and multiple tags can be passed in a single parameter as a comma-separated list of tag names.

I tried this from a BLT and it didn't work. What is the trick to get this to work? I have about 50 tags to query and I dont want to hard code the mappings and I would rather not fire 50 individual queries.

Any thoughts?

Former Member
replied

Brian,

You can't do it from an APPLET perspective or a standard TagQuery action block in BLS because of the explicit TagName.1 to TagName.128 query properties. The TagName property you found in the help only works for a direct query to the Illuminator servlet such as: http://<server:port>/Lighthammer/Illuminator?Server=Simulator&Mode=Current&TagName=L1Speed,L1Yield,AssetUtil1

If you need to wrap this functionality inside BLS or simply want to use it in an applet, then drop something like this into an XMLQuery template:

http://localhost/Lighthammer/Illuminator?QueryTemplate=Path/File&StartDate=[SD]&EndDate=[ED]&TagName=[Param.1]&Content-Type=text/xml

Assumptions would then be that you can bundle your data server and mode information in the query template (or you can keep them explicit with Server and Mode like in the first example and [Param.x] the right side of the equal sign to allow for simple Current/History/HistoryEvent changes). The [SD] and [ED] tokens will make the XMLQuery known to be time sensitive to an iChart so the default 60 minutes, etc. will go into the http request and give you the convenient VCR controls in the time control bar.

Regards,

Jeremy

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question