zoukankan      html  css  js  c++  java
  • SAP CRM Advanced search和Simple search里Max hit表现行为的差异

    We could observe the different behavior of search max hits in product advanced search and simple search.
    For Advanced search: if we maintain an invalid max hit number:

    the default 100 could automatically be restored:

    However this is not possible in simple search view. After an invalid max hit is typed, the error message is displayed, but the invalid content is still there.

    The reason is the max hit field in Simple search is implemented via a pure input field, and conversion exception occurs here:

    The exception information is written into the error message internal table:

    And the rendering logic for inputField is, if there is an invalid content typed by end user (line 66), the invalid content will be kept in UI ( line 79)

    And the logic in method is_attribute_valid in line 66 is just check whether the error message table in errors variable ( type cl_bsp_messages) is empty or not.

    The solution for the max hit in simple search:

    Since the design to use inputField as max hit could not be changed, however we could still change the implementation in method CL_PRDIOQR_ESSEARCH_CN00~SET_MAX_HITS: if method if_bsp_model_util~convert_from_string is NOT used, the framework handling for inputField will NOT set the invalid flag any more.

    要获取更多Jerry的原创文章,请关注公众号"汪子熙":

  • 相关阅读:
    TCP—为什么是AIMD?
    虚拟机是怎么实现的?
    漫谈linux文件IO
    关于大型网站技术演进的思考
    大公司里怎样开发和部署前端代码
    spawn-fcgi 代码介绍
    使用python传参form-data格式的txt请求接口
    实战scrapy抓取站长图片数据
    通过requests和lxml模块对网站数据进行爬取
    centos7.5下安装jenkins
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/13619234.html
Copyright © 2011-2022 走看看