Hi,
I recently upgraded from SmartClient 10 to 12.1, since then I have difficulty in date picker.
After initial debugging, in the working code(Version 10) I can see that when I clicked on date picker icon,
function iconClick is getting called which eventually calls this.showPicker(). I can also see
that show function is getting called from picker. However, in 12.1 eventhough function iconClick
is called after date picker clici, show function inside picker NOT getting called which I suspect
is the reason for date picker not being shown. Below is the snipper of code.
{name: "myDate", editorType: "SelectItem", showTitle: false, valueMap:myData.getDateValues(myData.defaultVal),
showPickerIcon: true, width:150, defaultValue: "Current",
icons: [{src: "[SKIN]/pickers/date_picker.png"}], redrawOnChange:true,
iconClick: function(){
this.showPicker();
},
change: function(form, item, value, oldValue ) {
this.Super("change", arguments);
},
picker: isc.DateChooser.create({autoDraw: false,
dataChanged: function() {
// To handle date change scenario
},
show : function() {
// NOT GETTING CALLED!!!
this.Super("show", arguments);
}
}),
setValue : function(value) {
// some custom code
this.Super("setValue", value);
}
},
I would like to know whether any changes are required for date picker after version upgrade.
In version 10 of SmartClient above code works perfectly. Problem started after upgrade to version 12.1
Any suggestions or pointers are highly appreciated.
I recently upgraded from SmartClient 10 to 12.1, since then I have difficulty in date picker.
After initial debugging, in the working code(Version 10) I can see that when I clicked on date picker icon,
function iconClick is getting called which eventually calls this.showPicker(). I can also see
that show function is getting called from picker. However, in 12.1 eventhough function iconClick
is called after date picker clici, show function inside picker NOT getting called which I suspect
is the reason for date picker not being shown. Below is the snipper of code.
{name: "myDate", editorType: "SelectItem", showTitle: false, valueMap:myData.getDateValues(myData.defaultVal),
showPickerIcon: true, width:150, defaultValue: "Current",
icons: [{src: "[SKIN]/pickers/date_picker.png"}], redrawOnChange:true,
iconClick: function(){
this.showPicker();
},
change: function(form, item, value, oldValue ) {
this.Super("change", arguments);
},
picker: isc.DateChooser.create({autoDraw: false,
dataChanged: function() {
// To handle date change scenario
},
show : function() {
// NOT GETTING CALLED!!!
this.Super("show", arguments);
}
}),
setValue : function(value) {
// some custom code
this.Super("setValue", value);
}
},
I would like to know whether any changes are required for date picker after version upgrade.
In version 10 of SmartClient above code works perfectly. Problem started after upgrade to version 12.1
Any suggestions or pointers are highly appreciated.
Comment