drlma06060 2012-02-22 11:43
浏览 24
已采纳

为什么ATK Framework不在记录列表的表中显示“notes”字段?

I'm learning ATK through the demo project, you can login and see the code for yourself.

In lesson 1, each employee entity/node has a "notes" attribute, you don't see that "notes" attribute in the list of records. When you edit a record you do see it however..

record list

edit an item

I've added a field "foo" (INT) to the table and you do see that showing up in the record-list, and also in the edit-screen.

I've tried renaming the notes field in the DB, doesn't work. The tutorial also says nothing about this.

  • 写回答

2条回答 默认 最新

  • doubei5114 2012-02-23 05:41
    关注

    Add a statement to the policy function like:

    $policy->get("notes")->removeFlag(AF_HIDE_LIST);
    

    I suggest you check both the atk forum at http://forum.achievo.org and the atk wiki at http://www.atk-framework.com/wiki/ATK and submit questions via the forum.

    See http://www.atk-framework.com/wiki/Attribute_Flags for a list all the attribute flags

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 已知许多点位,想通过高斯分布来随机选择固定数量的点位怎么改
  • ¥15 C#不用正则表达式如何全字匹配
  • ¥15 怎么生成确定数目的泊松点过程
  • ¥15 layui数据表格多次重载的数据覆盖问题
  • ¥15 python点云生成mesh精度不够怎么办
  • ¥15 QT C++ 鼠标键盘通信
  • ¥15 改进Yolov8时添加的注意力模块在task.py里检测不到
  • ¥50 高维数据处理方法求指导
  • ¥100 数字取证课程 关于FAT文件系统的操作
  • ¥15 如何使用js实现打印时每页设置统一的标题