Extjs xml reader not working

113 views Asked by At

I have the following XML Configuration...

<?xml version="1.0" encoding="UTF-8"?>
<Schema xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="IncidentMgt">
<EntityType Name="in">
<Property Name="persistent_id" Type="Edm.String" Nullable="true" MaxLength="30"/>
<Property Name="active_f" Type="Edm.Int32" Nullable="true"/>
<Property Name="add_property_persids" Type="Edm.String" Nullable="true"/>
<Property Name="add_workflow_persids" Type="Edm.String" Nullable="true"/>
</EntityType>
<EntityType Name="at">
<Property Name="persistent_id" Type="Edm.String" Nullable="true" MaxLength="30"/>
<Property Name="active_f" Type="Edm.Int32" Nullable="true"/>
<Property Name="add_property_persids" Type="Edm.String" Nullable="true"/>
<Property Name="add_workflow_persids" Type="Edm.String" Nullable="true"/>
</EntityType>
</Schema> 

Following is my XML Reader configuration:

reader : {
            type : 'xml',
            record : 'Property',
            rootProperty: 'EntityType',

        }

My Model :

fields: [{name:'Name',mapping:'@Name'}]

I am facing problem in loading the store.... could you let me know where is the mistake/where should i change to make this work

1

There are 1 answers

2
Jairo R. Flores On BEST ANSWER

Without the rest of the code, I can't tell you the error.

Here is a working example using the data you provided.

Compare it with your code, maybe you can find the problem.