add row will not work(I've check the forums)
function insertLeftItem(){
var rowData = ["PSOFH"];
myData.unshift(rowData);
obj.setRowCount(myData.length);
obj.refresh();
}
this works to statically add PSOFH.
I am trying to change it so when a person clicks a button it calls insertLeftItem() and adds the data that is at document.addItemLeft.itemDescription.value
I have verified that that gives me the correct data with an
alert(document.addItemLeft.itemDescription.value);
I have done all of my testing with description returning
This is the code I've been trying
function insertLeftItem(){
var rowData = '["'+document.addItemLeft.itemDescription.value+'"]';
myData.unshift(rowData);
obj.setRowCount(myData.length);
obj.refresh();
}
It will add a row, but the data will be undefined... HELP... I've been trying to simply add a row dynamically for 8 hours..
Thank you in advance..
var rowData = ["PSOFH"];
myData.unshift(rowData);
obj.setRowCount(myData.length);
obj.refresh();
}
this works to statically add PSOFH.
I am trying to change it so when a person clicks a button it calls insertLeftItem() and adds the data that is at document.addItemLeft.itemDescription.value
I have verified that that gives me the correct data with an
alert(document.addItemLeft.itemDescription.value);
I have done all of my testing with description returning
This is the code I've been trying
function insertLeftItem(){
var rowData = '["'+document.addItemLeft.itemDescription.value+'"]';
myData.unshift(rowData);
obj.setRowCount(myData.length);
obj.refresh();
}
It will add a row, but the data will be undefined... HELP... I've been trying to simply add a row dynamically for 8 hours..
Thank you in advance..
comptech
June 24,