1 Replies Last post: Mar 14, 2008 10:43 AM by Derwyn Harris  
Alessandro   14 posts since
Jan 14, 2008
Currently Being Moderated

Feb 27, 2008 4:19 AM

Error in batch update if a Date Field is selected to update

When I try to execute a "update selected" in one ore more itens from my grid list, and if I check a field of type "Date" in the popup window, so the update throws a exception. From firebug console I can see the javascript error:

 

dojo.date has no properties

buildItemsToChangeFilter()contourext.js (line 9821)

batchUpdate()contourext.js (line 9777)

batchUpdate()contourext.js (line 3250)

Button(Object browserEvent=Event resize button=-1 type=resize)ext-all.js (line 124)

EventManager(Object browserEvent=Event resize button=-1 type=resize)ext-all.js (line 18)

getViewWidth(click clientX=0, clientY=0)ext-base.js (line 12)

Break on this error b43=dojo.date.format(b43,this.defaultDateFormat);

__________________________________________

Maybe the problem is in this snipped code:

__________________________________________

 

for(var i in this.fields){

var meta=this.fields+;

if(meta.styleControl&&meta.styleControl.checked){

var _b43=""; 

var _b44="";

if(meta.control){ 

if(meta.dataType==Date||meta.dataType=="date"){

_b43=meta.control.getValue();

if(_b43){

b43=dojo.date.format(b43,this.defaultDateFormat);

}

}else{

if(meta.dataType=="Lookup"){

_b43=meta.control.value;

}else{

if(meta.dataType=="boolean"){

_b43=meta.control.checked?"true":"false";

}else{

_b43=meta.control.value;

}

}

}

}

}

}

Derwyn Harris   106 posts since
Jun 11, 2007
Currently Being Moderated
1. Mar 14, 2008 10:43 AM in response to: Alessandro
Re: Error in batch update if a Date Field is selected to update

This has been resolved in our 2.2 release.

More Like This

  • Retrieving data ...