I have three separate tab panels with each being a table in my database. What i'm trying to do is that on a click of a button is save the content of all the three tabs in the database at the same time. I managed to do so by activating the tabs, then passing it certain value. However when i remove both alert functions from my code, i'm getting that B.RECORD is undefined
. Any help on this?
tabPanel.setActiveTab(1);
tabPanel.setActiveTab(2);
tabPanel.setActiveTab(0);
var B= window.frames["frm_B"];
var C= window.frames["frm_C"];
alert(B);
alert(C);
try {
B.RECORD.getField("AID").setRealValue(aid);
C.RECORD.getField("AID").setRealValue(aid);
B.RECORD.update();
C.RECORD.update();
parent.refreshGrid();
parent.win.close();