SuiteScript - 从 "Vendor" 搜索加入 "Term"
SuiteScript - Search joining "Term" from "Vendor"
我正在搜索供应商,想加入 Term 以获取 Term 的名称。供应商有一个名为 terms
的字段,其中包含术语的 internalid
。 Term 有一个名为 name
的字段,其中包含我要查找的内容。
我几乎尝试了构建列的所有组合,但总是出现错误:
An nlobjSearchColumn contains an invalid column join ID, or is not in proper syntax: name.
我如何构建专栏的示例:
search.createColumn({
name: "name",
join: "terms", // or Term, or Terms, none of it works
label: "termname" // or leave this out or Term or Terms or anything else nothing works
}
创建包含字词名称的 vendor
搜索的正确方法是什么?
如果您查看记录浏览器,terms
未列为供应商记录中的连接。只需将 terms
作为列 (name: 'terms'
),然后在检索结果时,使用 getText
而不是 getValue
。
searchResults[i].getText({
name: 'terms'
});
我正在搜索供应商,想加入 Term 以获取 Term 的名称。供应商有一个名为 terms
的字段,其中包含术语的 internalid
。 Term 有一个名为 name
的字段,其中包含我要查找的内容。
我几乎尝试了构建列的所有组合,但总是出现错误:
An nlobjSearchColumn contains an invalid column join ID, or is not in proper syntax: name.
我如何构建专栏的示例:
search.createColumn({
name: "name",
join: "terms", // or Term, or Terms, none of it works
label: "termname" // or leave this out or Term or Terms or anything else nothing works
}
创建包含字词名称的 vendor
搜索的正确方法是什么?
如果您查看记录浏览器,terms
未列为供应商记录中的连接。只需将 terms
作为列 (name: 'terms'
),然后在检索结果时,使用 getText
而不是 getValue
。
searchResults[i].getText({
name: 'terms'
});