Hey everybody,
I have the following views correspondance:
MenuView --> ContactListView --> ContactDetailView
in the last view (ContactDetailView), I have a button implemented so that when I hit Enter, it should show up a Dialog displaying a confirmation message, and I would like to remain in the ContactDetailView. I use the method KONtx.application.reloadView(), but unexpectedly, the view displayed is ContatListView. I dont know how to fix that.
CODEBOX
imageCellCreator: function () {
return new KONtx.control.PhotoGridCell({
styles: this.getCellDimensions(),
events: {
onSelect: function (event){
var dataItemNumber = this.getCellDataIndex();
switch(dataItemNumber){
case 0: showConfirmationDialog("Perfect");break;
case 1: action2();break;
case 2: action3();break;
case 3: action4(); break;
}
}
}
});
},
and the showConfirmationDialog method
CODEBOX
function showConfirmationDialog(mensaje) {
var confirmationDialog = new KONtx.dialogs.Alert({
title: "Confirmation",
message: mensaje,
buttons: [
{label: "Ok", callback: function() {
KONtx.application.reloadView();
} }],
});
confirmationDialog.show();
}
I beg a hint, please!!!!
Thank you very much!!!!!