Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Modify custom placeholder from ODBC source using VBA

$
0
0

I am pulling assay data via ODBC from a Microsoft SQL database into a trend in Processbook. So I only need to use a single dataset the query is fairly generic and needs to be modified for different sample names and elements using custom placeholders. Changing these placeholders works fine in design mode.

 

The question I have is - is it possible to manipulate custom placeholders from VBA for different traces? I modified the code from a previous topic http://community.osisoft.com/index.php?/topic/2056-plot-pi-processbook-trend-from-odbc-source-using-vba/ and generated multiple trends okay but when I try to set the placeholders via VBA it changes the default placeholders, not the custom ones. This then makes the trends all the same.

 

Thanks


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>