Programmatically adding PI Unit Batches to a Batch Trend

Discussion created by RolandRich on Jul 11, 2014
Latest reply on Jul 15, 2014 by Gregor

I have a Batch Trend control in a ProcessBook display. I would like to programmatically do the following things:
- Search and find Unit Batches
- Add Unit Batches to the Batch Trend Display.
- Remove Unit Batches from the Batch Trend display
- If possible, control the pen color of the individual batches on the Batch Trend Display.


Does anyone have any example code of performing these tasks in Processbook? The 'PI Batch View Programming Help' document does not contain anything useful.