-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Description
I am having a problem where although I pass a model, fields definition and jsonschema to schemaform control, textfields render with the passed value but selectfields always select the first value in the titlemap, regardless of the underlying value.
Can someone help me out?
Here is my model, form and schema:
{ "item":{
"Id":1,
"Title":"Default Test Box",
"Comment":"Default Box for testing",
"DateTimeCreated":"2016-10-16T00:28:45.5735031",
"DateTimeLastChanged":"2016-10-16T00:28:45.5735031",
"Status":"Enabled",
"DateTimeRunStart":"2016-10-16T19:46:46.230Z",
"DateTimeRunStop":"2016-10-16T19:46:46.230Z",
"TemporaryFolderName":"",
"OutgoingActiveMessageCount":0,
"LogCount":0,
"IdSchema":16,
"LogLevel":"Debug",
"Format":"Json",
"IsValid":true,
"ConfigurationErrors":[
],
"DateTimeLastHandled":"0001-01-01T00:00:00"
},
"formFields":[
{
"key":"Title",
"type":"text",
"placeholder":"The date time to start executing the channel",
"displayOrder":1
},
{
"key":"Comment",
"type":"textarea",
"placeholder":"The date time to start executing the channel",
"displayOrder":2
},
{
"key":"Format",
"type":"select",
"placeholder":"The format of messages this box will handle",
"displayOrder":3
},
{
"key":"Status",
"type":"select",
"placeholder":"The status of the box",
"displayOrder":4
},
{
"key":"IdSchema",
"type":"selectentity",
"placeholder":"The Xml schema messages that enter this box must conform to.",
"displayOrder":5
},
{
"key":"LogLevel",
"type":"select",
"placeholder":"The log verbosity for this channel",
"displayOrder":10
}
],
"schema":{
"id":"BoxDto",
"type":"object",
"properties":{
"Status":{
"type":[
"string",
"null"
],
"enum":[
"Disabled",
"Enabled",
"Paused",
"Errored"
]
},
"Format":{
"type":[
"string",
"null"
],
"enum":[
"Xml",
"Binary",
"Json",
"Other"
]
},
"IsValid":{
"type":"boolean"
},
"ConfigurationErrors":{
"id":"String[]",
"type":[
"array",
"null"
],
"items":{
"type":[
"string",
"null"
]
}
},
"IdSchema":{
"type":[
"integer",
"null"
]
},
"DateTimeLastHandled":{
"type":"string"
},
"OutgoingActiveMessageCount":{
"type":"integer"
},
"LogCount":{
"type":"integer"
},
"LogLevel":{
"type":[
"string",
"null"
],
"enum":[
"Inherit",
"Off",
"Debug",
"Warning",
"Error"
]
},
"Id":{
"type":[
"integer",
"null"
]
},
"Title":{
"type":[
"string",
"null"
]
},
"Comment":{
"type":[
"string",
"null"
]
},
"DateTimeCreated":{
"type":"string"
},
"DateTimeLastChanged":{
"type":"string"
}
},
"required":[
"Status",
"Format",
"IsValid",
"ConfigurationErrors",
"IdSchema",
"DateTimeLastHandled",
"OutgoingActiveMessageCount",
"LogCount",
"LogLevel",
"Id",
"Title",
"Comment",
"DateTimeCreated",
"DateTimeLastChanged"
]
}}`
cheers
Metadata
Metadata
Assignees
Labels
No labels