Hi,
I am getting the following error: 'this.proxy' is null or not an object.
It probably has something to do with the datastore. Is it correct that when you pass an url to the constructor, it creates its own HttpProxy? (Or do I need to create the HttpProxy myself, and the connection object, etc...?) XMLFilterImpl (Java 2 Platform SE v1.4.1):: Get the current error event handler. Specified by: getErrorHandler The current error handler, or null if none was set. See Also: XMLReader.getErrorHandler http://web.cs.mun.ca/javaapi/org/xml/sax/helpers/XMLFilterImpl.htmlHOME | Indiana University East - Home:: D:/inetpub/wwwroot/events/eventfeed.xml:1: parser error : Extra content at the PHP Warning: XMLReader::read() [xmlreader.read]: An Error Occured while reading http://www.iue.edu/?approved=90HOME |
Or is something else wrong with my code? I'm new to ExtJs:
var GridUI = function() {
var ds; //hold our data
var grid; //component
var columnModel; // definition of the columns
var Fund = Ext.data.Record.create([
{name: 'SubfundId'},
{name: 'SubfundName'},
{name: 'AUM'},
{name: 'Currency'},
{name: 'Type'}
]);
var xmlReader = new Ext.data.XmlReader({ Re: What does xml validation with xml schema do? - MSDN Forums:: The error message is just the xml file cannot be found. I got the same error at. XmlReader reader = XmlReader.Create(xmlFile, settings); as before. http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3805423&SiteID=1HOME |
record: "Item", // the key in the XML file
id: "SubfundId"
}, Fund);
function setupDataSource() {
ds = new Ext.data.Store({
//proxy: new Ext.data.HttpProxy(xmlReader),
url: "PFOverview.xml",
reader: xmlReader
});
ds.load();
}
function getColumnModel() {
if(!columnModel) {
columnModel = new Ext.grid.ColumnModel(
[
{
header: 'Subfund',
width: 50,
sortable: true,
dataIndex: 'SubfundId'
},
....
}
]
);
}
return columnModel;
}
function buildGrid() {
grid = new Ext.grid.Grid(
'gridOverview',
{
ds: ds,
cm: getColumnModel(),
autoSizeColumns: true
}
);
grid.render();
}
return {
init : function() {
setupDataSource();
buildGrid();
},
getDataSource: function() {
return ds;
}
}
}();
Ext.onReady(GridUI.init, GridUI, true);
The xml is in a file and looks like:
TST123
Fund1
Test
USD
Equity Fund
TST456
Fund2
Test
USD
Equity Fund
Thanks for any help!
Jan
It seems that your code is for Ext 1.1.1...¿?¿?
In 2.0 doesn't exist Ext.grid.Grid...
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|