Scripting for tag which value changes according to query

I need to know which method to use for which i have a query with values. i want it to bind to tags by which it changes value according to date and time on the query data through a slider.

I don't have the slightest clue what you're asking. You'll need to be a bit (or maybe even a lot) clearer about what you want to do.

2 Likes

i have a database with name,percentage,time . i want to assign them to labels and put a slider which changes the tag values .

That part is easy. Create a named query or SQL binding for each label. It will extract just one value or string from the database. The query will need some parameters for the WHERE clause.

This part is not clear.

  1. What is the relationship between tags and the database?
  2. What happens when the slider is adjusted?
  3. What is the application supposed to do?

Please answer points 1, 2 and 3.

  1. the database is the historical values of the tags
    2)the tag value should change based on past data with respect to time
    3)give previous data stored which is represented in tags

Still not clear.
Sorry, but you need to write a much better specification and maybe add a screen-grab of a mock-up.

2)the tag value should change based on past data with respect to time

Are you trying to create a datetime picker using the Slider component?

3)give previous data stored which is represented in tags

Stored data is not "represented in tags". Tag data is stored in the historian.

Tip: the markdown syntax for numbered lists is 1. (a space following the dot).

Some slightly important information is missing. What visualization module are you using? Vision or Perspective? The potential solutions can vary greatly depending on that information.

perspective