Skip to main content

Set Items

saveOptions

A function used to save User, Document and other fields in the form.

{
saveOptions: {
type: "document",
fieldName: "Agreed Date",
},
dataField: "AgreedDateUtc",
label: {
text: "Internal Due Date"
}
editorOptions: {
type: "datetime",
displayFormat: "dd/MM/yyy HH:mm",
disabled: false
},
editorType: "dxDateBox"
}

type

Accepted Values: 'document' | 'userfield' | 'other'

{
type: "document"
}
note
  • If the type is set as 'others', no further parameter needs to be passed into the saveOptions.

  • If is specified as parameter instead of an object. The value passed will set the 'type'.

{
saveOptions: "document",
dataField: "AgreedDateUtc",
label: {
text: "Internal Due Date"
}
editorOptions: {
type: "datetime",
displayFormat: "dd/MM/yyy HH:mm",
disabled: false
},
editorType: "dxDateBox"
}

fieldName

To assign the name you want to save the field.

{
saveOptions: {
type: "userField",
fieldName: "Priority",
dataType: 6
},
dataField: "Priority"
editorType: "dxSelectBox"
}
note

If no value is passed, it will use the dataField value.

{
saveOptions: {
type: "userField"
},
dataField: "Priority"
editorType: "dxSelectBox"
}

dataType

To pass the User Data Type Id, it takes a value of type number.

note

Properties only valid if the type propertie is set to 'userfield'

{
saveOptions: {
type: "userField",
dataType: 6
},
dataField: "Priority"
editorType: "dxSelectBox"
}
DataTypeNumber
Date1
Integer3
Varchar1006
VarcharMax7
UniqueIdentifier9

isMultipleSelection

A parameter of type boolean to allow multisection.

Default value: false.

{
saveOptions: {
type: "userField",
dataType: 6,
isMultipleSelection: true
},
dataField: "Priority"
editorType: "dxSelectBox"
}

lookupFieldName

To set the userfield lookup field name.

{
saveOptions: {
type: "userField",
dataType: 6,
isMultipleSelection: true
lookupfieldName: "lookupPriority"
},
dataField: "Priority"
editorType: "dxSelectBox"
}