Hi Lindsay,
I've figured out what the problem is but I didn't solve it yet. I have several tables with Select components that queries mdb. I want to invoke a function to do some validations in each table so I have to pass table and select as argument:
ca_fd.js.validar('tblRecursos','selNomeRecurso');
validar : function (tbl,sel){
var teste = ca_fdGetInsertedTableRows(ca_fd.formId, tbl);
var rows = ca_fdGetTableRowCount(ca_fd.formId, tbl);
var undefined = 0;
for(var i = 0 ; i < rows ; i++){
alert("1 - By param "+teste[i].sel+ " - Variable type: "+(typeof sel));
alert("2 - Force select "+teste[i].selNomeRecurso+ " - Variable type: "+(typeof selNomeRecurso));
}
return undefined;
}
I'm having troube passing a Select as an argument. Alert 1 prints undefined and alerts 2 prints the correct value.
"sel" typeof is string and that's why code has this behaviour.
How can I deal with this?
Thank you.
Pedro