For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > [suspicious - maybe spam] DataGrid can not display added column









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [suspicious - maybe spam] DataGrid can not display added column
digit Shine

2005-05-05, 3:58 am


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/.../event/mail_1g/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com