我想隐藏Field Service-Dynamics 365应用程序上的Optionset值。我们正在使用伍德福德解决方案进行定制。基于Resco Javascript桥参考,我看不到在现有选项集中隐藏选项的方法。所以我创建了一个组合框,并尝试将选项添加到组合框中。但它只显示一个选项,即使我在组合框上添加了多个标签错误的选项。
if ((responseTypeOptionSetValues.length == responseTypeOptionSetLables.length)
&& responseTypeOptionSetLables.length > 0) {
for (i = 0; i < responseTypeOptionSetValues.length; i++) {
if (valueListOptions.length > 0) {
for (i = 0; i < responseTypeOptionSetValues.length; i++) {
if (valueListOptions.indexOf(responseTypeOptionSetValues[i].toString()) != -1) {
finalLabelValue = responseTypeOptionSetLables[i].toString();
finalOptionValue = responseTypeOptionSetValues[i].toString();
comboItem.listDataSource = {
**finalLabelValue: finalOptionValue,**
};
}
}
}
}
}