jlg
31 Jan 2011, 10:55 PM
Hi,
when registering a new model, how do I map fields with elements that are prefixed? I.e.
app.models.SpaceConents = Ext.regModel("app.models.SpaceConents", {
fields: [
{ name: "id", type: "string", mapping: "cmis:propertyid[displayName='Object Id'] > cmis:value" }
]
});
From the following XML:
<cmis:propertyid propertyDefinitionId="cmis:objectId" displayName="Object Id" queryName="cmis:objectId">
<cmis:value>workspace://SpacesStore/cb2e5f9d-db11-4aa2-992e-dfdfc9b79d36</cmis:value>
</cmis:propertyid>
The colon in "cmis:" gives me the following error "an uncaught SyntaxError: Unexpected token : " at sencha-touch-debug.js:9814
when registering a new model, how do I map fields with elements that are prefixed? I.e.
app.models.SpaceConents = Ext.regModel("app.models.SpaceConents", {
fields: [
{ name: "id", type: "string", mapping: "cmis:propertyid[displayName='Object Id'] > cmis:value" }
]
});
From the following XML:
<cmis:propertyid propertyDefinitionId="cmis:objectId" displayName="Object Id" queryName="cmis:objectId">
<cmis:value>workspace://SpacesStore/cb2e5f9d-db11-4aa2-992e-dfdfc9b79d36</cmis:value>
</cmis:propertyid>
The colon in "cmis:" gives me the following error "an uncaught SyntaxError: Unexpected token : " at sencha-touch-debug.js:9814