Skip to main content

Set Items

saveOptions#

Description#

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

Example#

{    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"}
  • 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"}

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.

fieldName#

To assign the name you want to save the field.

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

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

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

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

dataType#

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

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

isMultipleSelection#

Default value: false.

A parameter of type boolean to allow multisection.

{   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"}