I am getting a lot of those warnings in logs followed by error:
I have field “newDocument” type="binary in datasource.
In the form this field is of file type. I am doing everything according to documentation, treating it as standard field and not returning data for this field from Response.
Do you know what is causing it?
ebooth:13:30:56.859:MUP3:WARN:DocumentEditor:isc_EditNote_1282_documentSection_documentEditor:about to call saveData(), validation now returns: true
ebooth:13:30:56.859:MUP3:WARN:RPCManager:request specified explicit transport: xmlHttpRequest, but other settings (directSubmit, downloadResult, or target) mandate hiddenFrame transport, switching transport to hiddenFrame and submitting without queueing
ebooth:13:30:59.140:WARN:FileItem:isc_FileItem_1382:Cannot programatically set the value of an upload field due to security restraints
ebooth:13:30:59.484:RDQ2:WARN:Log:Error:
‘‘this.formItem.formatPickListValue’ is null or not an object’
in http://athena/cue/home.htm
at line 1472
PickListMenu.formatCellValue(_1=>“LEGAL”, _2=>Obj, _3=>0, _4=>0)
ListGrid.$315(_1=>“LEGAL”, _2=>Obj, _3=>Obj{name:subDocType}, _4=>0, _5=>0)
ListGrid.getCellValue(_1=>Obj, _2=>0, _3=>0, _4=>[GridBody ID:isc_PickListMenu_1363_body])
[o]GridBody.getCellValue(record=>Obj, rowNum=>0, colNum=>0, gridBody=>[GridBody ID:isc_PickListMenu_1363_body])
GridRenderer.$22k(_1=>Obj, _2=>0, _3=>0)
GridRenderer.getTableHTML(_1=>undef, _2=>undef, _3=>undef)
GridRenderer.getInnerHTML(undef)
“var _1=this.getTableHTML(),_2=this.$57k;_2[1]=this.getTableZIndex();_2[3]=_1;return _2.join(isc.emptyString)”
Class.invokeSuper(_1=>null, _2=>“getInnerHTML”, _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
Class.Super(_1=>“getInnerHTML”, _2=>Obj{length:1}, _3=>undef)
GridBody.getInnerHTML(undef)
Canvas.$px(_1=>undef)
Canvas.$rd(undef, undef, undef, undef, undef, undef, undef, undef)
** recursed on Class.invokeSuper
My datasource:
<DataSource ID="documentDS" dataURL="/athena_cue/isomorphic/IDACall/documentDS" serverType="generic">
<fields>
<field name="documentId" type="sequence" hidden="true"/>
<field name="windowsId" type="text" hidden="true"/>
<field name="userId" type="integer" primaryKey="true" hidden="true"/>
<field name="objectId" type="text" hidden="true"/>
<field name="referenceObjectId" type="text" primaryKey="true" hidden="true"/>
<field name="noteId" type="sequence" primaryKey="true" hidden="true"/>
<field name="claimId" type="integer" primaryKey="true" hidden="true"/>
<field name="docType" type="text" title="Document Type" />
<field name="subDocType" type="text" title="Sub Document Type" />
<field name="subject" type="text" title="Subject"/>
<field name="contentType" type="text" title="Format"/>
<field name="objectName" type="documentLink" title="File Name"/>
<field name="isUpdateable" type="editableRecord" title=" "/>
<field name="removeDocument" type="boolean" title=" "/>
<field name="isLatest" type="boolean" title=" "/>
<field name="isAttached" type="boolean" title=" "/>
<field name="newDocument" type="binary" />
<field name="actionType" type="text" hidden="true"/>
<field name="indexDate" type="date" title="Index Date" hidden="true"/>
</fields>
<serverObject lookupStyle="spring" bean="DocumentDMI" />
</DataSource>
My form :
newDocumentFormDefaults : {
_constructor: "DirtyForm",
dataSource: "documentDS",
width: 700,
height: 100,
numCols: 4,
backgroundColor:"#ffff99",
colWidths: [150, 200, 150, 200],
fields: [
{name:"errorMessage",type:"header",textBoxStyle:"search_errorheading",visible:false,showIf:"false"},
{name:"error",type:"header",textBoxStyle:"search_errorheading",visible:false,showIf:"false"},
{name: "subject", width: "*", title: "Subject", required: true,
change: function (form, item, value, oldValue) {
form.creator.creator.setDirty();
}
},
{name:"claimId",showIf:"false"},
{name:"noteId",showIf:"false"},
{name: "newDocument", title: "Browse",required:true,formItemType:"file",
change: function (form, item, value, oldValue) {
form.creator.creator.setDirty();
}
},
{name:"docType",type:"select",required: true,optionDataSource:"documentTypeDS",displayField:"docType",defaultValue:"Select....",autoFetchData:true,
//Populates the Sub Document Type Dropdown depending upon the Document Type selected
changed:function(form,item,value,oldValue) {
Log.logDebug("Entering changed()","DocumentEditor.js$DocumentSection");
var subDocTypeSelect=this.form.getField("subDocType");
this.form.getField("subDocType").clearValue();
form.creator.creator.setDirty();
if(value=="*All*") {
var data={
subDocType:" "
};
this.form.getField("subDocType").setValueMap(data);
} else {
var criteria={
docType: value
}
documentSubTypeDS.fetchData(criteria,this.form.getField("subDocType").getID()+".setValueMap(data)");
}
Log.logDebug("Exiting changed()","DocumentEditor.js$DocumentSection");
}
},
{name:"subDocType",defaultValue:"Select....",required:true, type:"select",
change: function (form, item, value, oldValue) {
form.creator.creator.setDirty();
}
},
{name: "actionType",defaultValue:"attachNewDocument",showIf:"false"}
],
//When user clicks 'Enter' the document is attached to note
itemKeyPress:function(item,keyName,characterValue) {
if(keyName=="Enter") {
Log.logDebug("Calling attachDocumentButtonClicked()","DocumentEditor.js$DocumentSection");
this.creator.attachDocumentButtonClicked();
}
}
},
fragment of code where error happenes:
this.logWarn("about to call saveData(), validation now returns: " + this.newDocumentForm.validate());
this.newDocumentForm.getField("errorMessage").setValue(" ");
this.newDocumentForm.saveData(this.getID()+".documentSaved(dsResponse,data,dsRequest)");
documentSaved function(provides error hadling if error happened in save):
documentSaved : function (dsResponse,data,dsRequest) {
if(dsResponse.errors && dsResponse.errors[0] && dsResponse.errors[0].uploadError && dsResponse.errors[0].uploadError.errorMessage) {
this.creator.creator.showFormError("Error occured while uploading the file");
this.closeClick();
return false;
}
if(dsResponse.errors && dsResponse.errors[0] && dsResponse.errors[0].error && dsResponse.errors[0].error.errorMessage) {
if(dsResponse.errors[0].error.errorMessage.contains("WRITE permit is required")) {
this.creator.creator.showFormError("Unable to attach a new document to this note as you do not have sufficient privileges in Documentum. Please contact the Helpdesk.");
}
else
{
this.creator.creator.showFormError("Error occured while attaching document to a note");
}
this.closeClick();
return false;
}
// catch unspecified errors
if ( dsResponse.status < 0 ) {
cue.say("Unable to save document. Please try again.");
this.closeClick();
return false;
}
cue.UIPrompts.showSavedPrompt('Document added');
this.closeClick();
},