我配置了以下组件:
<netsuite:search config-ref="Netsuite" searchRecord="EMPLOYEE" bodyFieldsOnly="false" returnSearchColumns="false" pageSize="10" doc:name="Netsuite">
<netsuite:criteria>
<netsuite:criterium key="isInactive">false</netsuite:criterium>
</netsuite:criteria>
</netsuite:search>
我收到错误:
java.lang.IllegalArgumentException: Property isInactive in class class com.netsuite.webservices.lists.employees_2013_1.EmployeeSearch is not readable
答案 0 :(得分:0)
我能够找到解决方案。在第一阶段,我们创建一个包含搜索字段值的spring bean。然后在NetSuite组件中使用此bean。正确的流程如下:
<spring:beans>
<spring:bean id="SearchBooleanField" name="SearchBooleanField" class="com.netsuite.webservices.platform.core_2013_1.SearchBooleanField" scope="prototype">
<spring:property name="searchValue" value="false"/>
</spring:bean>
</spring:beans>
...
<netsuite:search config-ref="Netsuite" searchRecord="EMPLOYEE_BASIC" bodyFieldsOnly="false" returnSearchColumns="false" pageSize="10" doc:name="Netsuite">
<netsuite:criteria>
<netsuite:criterium key="isInactive">#[app.registry.SearchBooleanField]</netsuite:criterium>
</netsuite:criteria>
</netsuite:search>