Trouble with SetXML
Can someone tell me what is wrong with the following example? The grid gets rendered but not the data. Is this the proper way of using SetXML?
Thanks.
Ken
<html>
<head>
<link href="ActiveWidgets/runtime/styles/xp/aw.css" rel="stylesheet"></link>
<script src="ActiveWidgets/runtime/lib/aw.js"></script>
</head>
<body>
<script>
var myXML = '<Sports xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' +
'<eOrder>' +
'<Ordernum>6</Ordernum>' +
'<CustNum>1</CustNum>' +
'<OrderDate>2006-02-11</OrderDate>' +
'<ShipDate>2006-02-16</ShipDate>' +
'<PromiseDate>2006-02-16</PromiseDate>' +
'</eOrder>' +
'</Sports>';
var table = new AW.XML.Table;
table.setXML(myXML);
var obj = new AW.UI.Grid;
obj.setColumnCount(5);
obj.setCellModel(table);
document.write(obj);
</script>
</body>
</html>
Thanks.
Ken
<html>
<head>
<link href="ActiveWidgets/runtime/styles/xp/aw.css" rel="stylesheet"></link>
<script src="ActiveWidgets/runtime/lib/aw.js"></script>
</head>
<body>
<script>
var myXML = '<Sports xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">' +
'<eOrder>' +
'<Ordernum>6</Ordernum>' +
'<CustNum>1</CustNum>' +
'<OrderDate>2006-02-11</OrderDate>' +
'<ShipDate>2006-02-16</ShipDate>' +
'<PromiseDate>2006-02-16</PromiseDate>' +
'</eOrder>' +
'</Sports>';
var table = new AW.XML.Table;
table.setXML(myXML);
var obj = new AW.UI.Grid;
obj.setColumnCount(5);
obj.setCellModel(table);
document.write(obj);
</script>
</body>
</html>
Ken
April 5,