- document.getElementById('oid'+rownum).value = obj.fullname;
- document.getElementById('datatype'+rownum).innerHTML = obj.type;
+ var oidfield = document.getElementById('oid'+rownum);
+ oidfield.value = obj.fullname;
+ document.getElementById('datatype'+rownum).value = obj.type;
+ oidfield.onchange(); //should be same as datatype, only need to run one