Example of tag paths and values in system.tag.storeTagHistory function?

I’m exploring an alternative approach to solving my previous question.

  • My tags are in a UDT.
  • I want to write all the UDT tags to the History Provider on change of the “Total” tag.

Can someone give me guidance on how to set the paths and values to reference my UDT tags in an valueChanged event script?

system.tag.storeTagHistory(“myHistoryProvider”, “myTagProvider”, “paths”, system.tag.read("[.]Weight"), “192”, system.date.now())

i.e., What’s the simplest syntax for each of the bold items above? For example, how do I reference the Weight value in the same UDT?

Many thanks.

I've the same problem :frowning:
Now I set up transactions groups for eacht instance of an UDT manually.
However this will log it to the database, it is not the way it is supposed to be.

  1. I wasn't able to get a whole UDT in a transaction group (i did it manually for each instance now)
  2. this isn't actual historic data, it will not be shown at a tree browse when having historical tags enabled.

my situation:

i have 2 tags:
Tag A
Tag B

Both are historic tags and both are only have to log when Tag A changes.

This is what "DB pens" are for -- data in wide tables from transaction groups or external sources. Since there's no standardized format for such data, you have to implement your own tag drop event handlers that understand your DB structure.