Why with_indobjects is not available in product search

135 阅读1分钟

Created by Jerry Wang, last modified on Mar 17, 2014

Product search的configuration里,在available search criteria和Selected Search Criteria两个区域内都没有发现WITH_INDOBJECTS这一attribute:

 

clipboard1

 

 

虽然query object的structure里确实有with_indobjects这一字段。

 

clipboard2

 

 

我们可以debug GET_VISIBLE_FIELDS方法:

 

clipboard3

 

 

框架会遍历每个字段,如果字段对应的design entity 的hidden或者excluded flag被置位,该field将不会显示。

 

clipboard4

 

 

这里with_indobjects从待显示的fields里移除:

 

clipboard5

 

 

 

框架会检查search field是否在design layer里配置为standard。如果配置为hidden或者excluded,或者design layer里不存在对应的entry, 

 

则该field将不会显示。对于with_indobjects而言,系统标准的design layer setting并没有对应的entry, 因此该field不会出现在View configuration里

clipboard6

 

可以通过在下列表BSP_DLC_SETTINGS里添加一行entry的做法来disable 系统的这一behavior。 添加之后即使design layer里没有对应的entry或者被标记成hidden 和excluded也能显示在view configuration里:

 

clipboard7

 

 

 

clipboard8