agiletoolkit

Agile Toolkit - OR statement in combination with Model

♀尐吖头ヾ 提交于 2019-12-13 05:12:47
问题 I have a Model from which I want to select all rows for which 'caller' or 'callee' is a given value for presentation in a Grid. I have tried lots of different avenues of accomplishing this and cannot get anywhere with it. I have a working filter on the Grid which narrows down the results by date (starting and ending dates), by status ("ANSWERED","NO_ANSWER"), I can also add conditions for 'caller' and 'callee', but how do I get it to show all rows where either 'caller' or 'callee' is a match

How to use Filestore in API in Agiletoolkit?

时光毁灭记忆、已成空白 提交于 2019-12-13 02:25:52
问题 i am working on an urgent project which involves implmentation of filestore of Agiletoolkit i went through the doc here => http://agiletoolkit.org/doc/filestore $f=$p->add('Form'); $c=$p->add('Controller_Filestore_File'); $c->setActualFields(array('id','filestore_type_id','filestore_volume_id','filename','filesize')); $f->addField('upload','upload')->setController($c); $p->add('H4')->set('Previously Uploaded Files'); $g=$p->add('MVCGrid')->setController($c); $g->dq->limit(5)->order('id desc')