for(int i=0;i<TREND_MY.numTrendAreas;i++){
dyn_string curveNames=TREND_MY.curveNames(i);
DebugTN("curveNames",curveNames);
if(dynlen(curveNames)<=0) continue;
for(j=1;j<=dynlen(curveNames);j++){
DebugTN("["+i+"]curveNames["+j+"]",curveNames[j]);
if(TREND_MY.curveVisible(curveNames[j]))
dynAppend(exportDP,TREND_MY.curveDataSource(curveNames[j]));
DebugTN("TREND_MY.curveDataSource(curveNames[j])",TREND_MY.curveDataSource(curveNames[j]));
}
}
DebugTN("TREND_MY.curveDataSource",TREND_MY.curveDataSource( "TREND_1"));
string dp;
getValue("TREND_MY","curveDataSource","TREND_1",dp);
DebugTN("dp",dp);
WCCOAui1:2021.09.17 12:22:13.033["curveNames"][dyn_string 1 items
WCCOAui1: 1: "TREND_1"
WCCOAui1:]
WCCOAui1:2021.09.17 12:22:13.033["[0]curveNames[1]"]["TREND_1"]
WCCOAui1:2021.09.17 12:22:13.033["TREND_MY.curveDataSource(curveNames[j])"][""]
WCCOAui1:2021.09.17 12:22:13.033["TREND_MY.curveDataSource"][""]
WCCOAui1:2021.09.17 12:22:13.033["dp"][""]
curveDataSource does not work with dynamically added curves to the trend
Search
-
- Posts: 25
- Joined: Fri Oct 20, 2017 8:50 am
Re: curveDataSource does not work with dynamically added curves to the trend
When looking at the documentation for "curveDataSource" you will find the following information:
The attribute "curveDataSource"; will only be interpreted when the panel has been loaded.
https://www.winccoa.com/documentation/W ... datasource
Best Regards
Leopold Knipp
Senior Support Specialist
The attribute "curveDataSource"; will only be interpreted when the panel has been loaded.
https://www.winccoa.com/documentation/W ... datasource
Best Regards
Leopold Knipp
Senior Support Specialist