Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
$this->src('ops')
->query(array("collection"=>"user_data"))
->pipe($this->dataStore('user_data'));
This will return only single record whereas this table has 2 records.
$user_data = $this->dataStore("user_data")->data(); If i count $user_data, the count will be one.
Thanks. But this is the same case with mysql.
$this->src('rp')
->query("SELECT annotation_type FROM tbl_user_annotation_activity")
->pipe(new Filter(array(
array("annotation_type","!=","bookmark")
)))
->pipe(new Group(array(
"count"=>"annotation_id"
)))
->pipe($this->dataStore('annotation'));
It could be the Filter, because one of the row could have annotation_type "bookmark" so KoolReport filters it out. Also in the Group process, I have not seen the "by"
settings and the "annotation_id" seems not available ( from the query). It could cause unexpected result.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo