前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP CRM Advanced search和Simple search里Max hit表现行为的差异

SAP CRM Advanced search和Simple search里Max hit表现行为的差异

作者头像
Jerry Wang
发布2020-08-10 11:52:26
4680
发布2020-08-10 11:52:26
举报

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.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-08 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档