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 解决一个加好友限制问题 或者有好的方案
  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?