这是 aikau Combobox 的用法:
{
name: "alfresco/forms/controls/ComboBox",
config: {
fieldId: "someFieldId",
label: "myListName",
name: "assoc_sc_goods",
addedAndRemovedValues: true,
valueDelimiter: ",",
firstValueIsDefault: false,
showAllOptionsOnOpen: true,
searchStartsWith: true,
optionsConfig: {
queryAttribute: "label",
labelAttribute: "label",
valueAttribute: "name",
publishTopic: "ALF_GET_FORM_CONTROL_OPTIONS",
publishPayload: {
resultsProperty: "options",
url: url.context + "/proxy/alfresco/slingshot/datalists/lists/node/workspace/SpacesStore/11111111-1111-1111-1111-111111111111",
itemsAttribute: "datalists",
labelAttribute: "name",
valueAttribute: "nodeRef"
}
}
}
}
它用 UUID11111111-1111-1111-1111-111111111111
很好地显示列表中的所有值,例如它显示名称而不是 nodeRef 值。但是当我按下表单上的按钮时,它会发送
"assoc_sc_goods_added": "goodName"
虽然预计
"assoc_sc_goods_added": "workspace://SpacesStore/22222222-2222-2222-2222-222222222222"
22222222-2222-2222-2222-222222222222
所选列表项的 UUID在哪里。
似乎Combobox
请求 json,提取 html 选择的值,labelAttribute
但是当涉及到应用选定的值时,它将选定的值forget
转换labelAttribute
回valueAttribute
.
如何配置 aikauCombobox
来解决此类问题?