Set Multi Lookup value - Error in Edit-Form with special characters
Posted: 27 Aug 2019
Hi there,
i'm setting a cross-site lookup with multi-value option by code in the new form:
It works.
The value from "titleField" is "InputSystem <-> OutputSystem"
But, if i try to update a item, i receive an error:
"Something went wrong..."
"The data source control failed to execute the update command"
The data from "fd.field("WikiKapitel").control('data')" in edit-view:
after set manuale (dropdown):
The problem seems to be because of the "<" & ">" characters...
How to fix this issue?
i'm setting a cross-site lookup with multi-value option by code in the new form:
Code: Select all
var data = {};
var titleField="WikiChapterTitle"; //internal field name for lookup-column
data["Id"] = item.ID;
data[titleField] = item[titleField];
fd.field("WikiKapitel").value([data]);
The value from "titleField" is "InputSystem <-> OutputSystem"
But, if i try to update a item, i receive an error:
"Something went wrong..."
"The data source control failed to execute the update command"
The data from "fd.field("WikiKapitel").control('data')" in edit-view:
Code: Select all
[
0: {
[functions]: ,
Id: "174",
WikiChapterTitle: "InputSystem <-> OutputSystem"
},
length: 1
]
Code: Select all
[
0: {
[functions]: ,
__metadata: { },
ID: 174,
Id: 174,
WikiChapter: " 4. 39.",
WikiChapterTitle: "InputSystem <-> OutputSystem"
},
length: 1
]
How to fix this issue?