PDA

View Full Version : why does not work ?



Davi Baldin
21 Jul 2007, 10:15 AM
I need some light...

Like ext functions e whant create the above Object and run and show it on cellclick in grid data, passing parameters to render dynamic form...
But not work...


ParametersEditorDialog = function(){
var dialog;
var form;
return {

init : function() {
// do something...
},

createForm : function(param1,param2,param3) {
//create dinamic Ext.form here
},

showDialog : function(param1,param2,param3){
//create and show Ext.LayoutDialog
}
};
}();



//Listners here...
grid.addListener('cellclick',
function (grid, rowIndex, colIndex) {
if (colIndex == 2) {
//This alert run
//Ext.MessageBox.alert('Ooops..', 'alert message runs...');
//This code not work
ParametersEditorDialog.showDialog(param1,param2,param3);
}
}

);

where is the missing concepts and code ????....
allot thanks,

Davi

jay@moduscreate.com
21 Jul 2007, 1:51 PM
seems fine to me, where does it fail? are you using firebug?

evant
21 Jul 2007, 3:51 PM
Indeed, code does look fine, do you get an error, or does nothing happen?

Might help to post all of your code.

Davi Baldin
21 Jul 2007, 4:16 PM
Sorry for this fake post. I just reboot my windows and the code works...... (very bad)
maybe we have a 'typo' in kernel.dll.....

regards,

davi