[suspicious - maybe spam] DataGrid can not display added column
| From: | digit Shine | Date: | Thu, 05 May 2005 01:52:22 +0000 |
| Subject: | [suspicious - maybe spam] DataGrid can not display added column | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-19075@lists.php.net to get a copy of this message | ||
hi,
I use DataGrid to display DataObject.
Using formBuilder_intergation is ok, but addColumn
display nothing.
Hr_employee.php:
...
var $fb_fieldsToRender=array(
'name',
'position_id',
'section_id',
'grade_id',
'status_id'
//,'edit' //***
);
...
dataGrid script:
require_once 'Hr_employee.php';
$eb = new Hr_employee;
require_once 'Structures/DataGrid.php';
$dg =& new Structures_DataGrid(10);
$dg->bind($eb,array('formbuilder_integration' => true
,'generate_columns' => true
));
$linkTitle = 'edit';
$column = new Structures_DataGrid_Column('edit');
$column->formatter = 'printLink($linkTitle=' .
$linkTitle . ')';
$dg->addColumn($column);
$dg->render();
result:(content in chinese)
name position_id section_id grade_id status_id
Tom accountant account house manager in-service
王五 会计 综合管理部 经理 在职
陈小强 ---- ---- ---- 在职
何小明 ---- ---- 科员 在职
马牛羊 会计 财务部 科员 在职
任我行 促销员 销售部 科员 在职
阿猪 出纳 财务部 主管 在职
阿狗 项目经理 销售部 经理 在职
木村 保安 总务 编外 在职
Column 'edit' not displayin the table above.
Why??
bitShine
_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/