AI OnAI Off
Yes I am getting a dojo error.
This more specifically.
I dont understand why this pops up in other languages then my primary language. I also get a GET-error for the dojo-widget.
Posting the result of the url that failed and caused 500 error.
{}&&{
"name": null,
"modelType": "myprojectname.Models.ViewModels.VideoViewModel",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": null,
"uiPackage": null,
"customEditorSettings": {},
"layoutType": null,
"initialValue": null,
"displayName": null,
"groupName": null,
"displayOrder": 10000,
"settings": {
"label": null
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [
{
"name": "Url",
"modelType": "System.String",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": "dijit/form/ValidationTextBox",
"uiPackage": null,
"customEditorSettings": {},
"layoutType": null,
"initialValue": null,
"displayName": "Url",
"groupName": null,
"displayOrder": 1,
"settings": {
"label": "Url",
"placeHolder": "Legg inn url til video"
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [],
"groups": [],
"selections": []
},
{
"name": "Title",
"modelType": "System.String",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": "dijit/form/ValidationTextBox",
"uiPackage": null,
"customEditorSettings": {},
"layoutType": null,
"initialValue": null,
"displayName": "Tittel",
"groupName": null,
"displayOrder": 2,
"settings": {
"label": "Tittel",
"placeHolder": "Videotittel"
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [],
"groups": [],
"selections": []
},
{
"name": "Description",
"modelType": "System.String",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": "epi/shell/widget/ValidationTextarea",
"uiPackage": null,
"customEditorSettings": {},
"layoutType": null,
"initialValue": null,
"displayName": "Beskrivelse",
"groupName": null,
"displayOrder": 3,
"settings": {
"label": "Beskrivelse",
"placeHolder": "Videobeskrivelse"
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [],
"groups": [],
"selections": []
},
{
"name": "Published",
"modelType": "System.DateTime",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": "epi/shell/widget/DateTimeSelectorDropDown",
"uiPackage": null,
"customEditorSettings": {
"converter": "epi.cms.propertydate"
},
"layoutType": null,
"initialValue": null,
"displayName": "Publisert",
"groupName": null,
"displayOrder": 4,
"settings": {
"label": "Publisert",
"required": true,
"missingMessage": "The Publisert field is required."
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [],
"groups": [],
"selections": []
},
{
"name": "ShowPublishedDate",
"modelType": "System.Boolean",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": "epi/shell/widget/CheckBox",
"uiPackage": null,
"customEditorSettings": {},
"layoutType": null,
"initialValue": null,
"displayName": "Vis publisert dato",
"groupName": null,
"displayOrder": 5,
"settings": {
"label": "Vis publisert dato",
"required": true,
"missingMessage": "The Vis publisert dato field is required."
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [],
"groups": [],
"selections": []
},
{
"name": "TextForPublishedDate",
"modelType": "System.String",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": "dijit/form/ValidationTextBox",
"uiPackage": null,
"customEditorSettings": {},
"layoutType": null,
"initialValue": null,
"displayName": "Tekst forann publisert dato",
"groupName": null,
"displayOrder": 6,
"settings": {
"label": "Tekst forann publisert dato"
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [],
"groups": [],
"selections": []
},
{
"name": "Tags",
"modelType": "System.String",
"showForEdit": true,
"hideSurroundingHtml": false,
"uiType": "epi-cms/contentediting/editors/CheckBoxListEditor",
"uiPackage": null,
"customEditorSettings": {},
"layoutType": null,
"initialValue": null,
"displayName": "Tag språk",
"groupName": null,
"displayOrder": 7,
"settings": {
"label": "Tag språk"
},
"overlaySettings": {},
"additionalValues": {},
"mappedProperties": [],
"properties": [],
"groups": [],
"selections": [
{
"value": "sosial på nett",
"text": "Sosial på nett"
},
{
"value": "bokmål",
"text": "Bokmål"
},
{
"value": "barn",
"text": "Barn"
}
]
}
],
"groups": [],
"selections": []
}
There is no direct error pasting the JSON-files. It still seems like there are properties set to required that are not actually set to required in the code.
When creating an editordescriptor that contains a selection-factory entry, the editordescriptor does not work for the secondary language on my site. The selection factory looks like this and works fine in my primary language and I am able to get the values in the views.
![](/contentassets/ec8ee26840934c7dac12d00fb23e2ead/image257.png)
![](/contentassets/ec8ee26840934c7dac12d00fb23e2ead/image255.png)
This is how it looks in the edit-view
Primary language:
Secondary language i get no possibility to add an entry:
I have identified it as an selectionfactory issue, because when I remove the property that uses selection factory it does work in all languages as expected. Is this a known bug or am I doing something wrong here?