Report.php
$this->src('sqlConn')->query("select * from Ways")
->pipe($this->dataStore('ways'));
$this->src('sqlConn')
->query($varname1 . $varname11 . $varname12 . $varname13 . $varname14 . $varname140 . $varname141 . $varname15 .
$varname16 . $varname160 . $varname161 . $varname17)
->pipe($this->dataStore('archiveStore'));
Report.view.php
$array1 = $this->dataStore('ways')->data();
$array = $this->dataStore('archiveStore')->data();
archiveStore always returns data. ways dataStore not always (broadly speaking - nine times out of ten). archiveStore gets data from linked OLEDB server, ways gets data from a real table in SQL Server. The table always contains a static set of data.