He taatai taku me te tukutuku. Kei te tarai ahau ki te whakaputa i tetahi pou hou e kiia ana ko te Ingoa Katoa hei whakakotahi i nga waahanga e rua. Ka roa ana e wa ana ki te rangahau i tenei take, ka mohio au ka taea pea he kaiwhakawhiwhi (taumata tukutuku) he pou ritenga ranei i te taatai (whakamahere?).
Ka taea e tetahi te whakawhiwhi i tetahi tauira waehere hei whakamahi i taua pou?
// XML
<person>
<first_name>John</first_name>
<last_name>Smith</last_name>
</person>
// Store
Ext.create('Ext.data.Store', {
autoLoad: true,
storeId: 'TestStore',
fields: ['first_name', 'last_name'],
data: parsed_xml_object,
proxy: {
type: 'memory',
reader: {
type: 'xml',
record: 'person'
}
}
});
// Grid
TestGrid = Ext.create('Ext.grid.Panel', {
title: 'Test',
store: Ext.data.StoreManager.lookup('TestStore'),
columns: [
{ header: 'First Name', dataIndex: 'first_name' },
{ header: 'Last Name Name', dataIndex: 'last_name' },
],
height: 200,
autowidth: true
});