打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
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.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
ElasticSearch如何一次查询出全部数据——基于Scroll
40 Hits 1960 - 1964
"Invalid Token" 解决办法
Invalid `Podfile` file: undefined method `pod' for main:Object.
Bean property 'xxx' is not writable or has an invalid setter method
Simple 1 小物
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服