0
我想在'N/Search'模块中使用圆括号添加过滤条件。我在Netsuite保存的搜索选项(IN用户界面)中添加了带有条件的括号“()”,但我没有在“SuiteScript 2.0版本”过滤器数组中添加括号内的条件。如何在'N/search'模块过滤器中添加括号中的过滤条件
我想要的下面图像上这样的括号中加入的条件:
[1]
[[如何与过滤器阵列(SuiteScript)]在括号过滤条件[1]!]我的代码:
filters = [
['custrecord_employee_name', 'is', employeeId], 'AND'
['custrecord_item_category', 'is', ItemCategoryId], 'AND',
['custrecord_commissions_owner', 'is', BookOwnerID], 'AND',
['custrecord_form', 'is', formId], 'AND',
(
['custrecord_from_date', 'onorbefore', createdDate], 'OR'
['custrecord_from_date', 'onorafter', createdDate]
), 'AND',
(
['custrecord_end_date', 'onorbefore', endDate], 'OR',
['custrecord_end_date', 'onorafter', endDate]
)
];
嗨Erictgrubaugh,我编辑了我的问题与要求,我的过滤器试图基于Requiement工作。 –