donh61500 2013-09-11 10:07
浏览 32
已采纳

日期字段不显示SugarCRM弹出窗口中的下拉列表

Hy Guys! I am facing a problem regarding datetime field display in Popup. If i add a datetime field to Advanced Search of ProspectLists it get displayed as shown below and works perfectly:

enter image description here

in the custom modules ProspectLists searchdefs advanced_search array it is defined as :

array (
    'type' => 'datetime',
    'label' => 'LBL_DATE_ENTERED',
    'width' => '10%',
    'default' => true,
    'name' => 'date_entered',        ),

but when i try to select a ProspectList from a Prospect List subpanel in Campaigns, the popup that gets displayed render the date field with out dropdown as shown below:

enter image description here

The other problem is this that when i perform search from popup for a specific date it displays nothing.

I am using SugarCRM CE 6.5.11. Any idea how to display dropdown with date field.?

  • 写回答

2条回答 默认 最新

  • douhuiwan5141 2013-09-11 13:45
    关注

    I think what you're looking for is the "Ranged Search" attribute.

    You can enable it in studio by going to the custom field and checking the "Enable Range Search" checkbox.

    Or, you can edit the custom/modules/{module}/metadata/SearchFields.php and add the following to the field in question:

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

报告相同问题?

悬赏问题

  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛