[Users] Geoext2 Attribute store : no record loaded
Côme LINSOUSSI
linsoussi at yahoo.fr
Sat Dec 14 05:20:11 CET 2013
Hi,
I am trying to load layer attribute with Attribute store, unfortunately, on load the store contains no records. may I be missing something. Please find below my code:
url="http://localhost:8080/geoserver/wms";
url2= Ext.urlAppend(url, Ext.urlEncode({
"SERVICE":"WFS",
"VERSION": "1.1.1",
"REQUEST": "DescribeFeatureType",
"TYPENAME": "villages"
}));
var schema = Ext.create('GeoExt.data.AttributeStore',{
url: url2,
autoLoad: true,
listeners: {
'load': function (store,records,opts) {
usingMyStore(store, url);
}
}
});
function usingMyStore(store, url) {
console.log(store); //this shows no data
store.each(function (rec) {
console.log(rec); //this shows no data
}};
I would appreciate if you can please provide a working example
Regards.
Côme LINSOUSSI
--------------------------------------------
En date de : Mar 10.12.13, users-request at geoext.org <users-request at geoext.org> a écrit :
Objet: Users Digest, Vol 59, Issue 2
À: users at geoext.org
Date: Mardi 10 décembre 2013, 12h00
Send Users mailing list submissions
to
users at geoext.org
To subscribe or unsubscribe via the World Wide Web, visit
http://www.geoext.org/cgi-bin/mailman/listinfo/users
or, via email, send a message with subject or body 'help'
to
users-request at geoext.org
You can reach the person managing the list at
users-owner at geoext.org
When replying, please edit your Subject line so it is more
specific
than "Re: Contents of Users digest..."
Today's Topics:
1. OpenLayers on Firefox 25.01 (Robert
Sanson)
----------------------------------------------------------------------
Message: 1
Date: Tue, 10 Dec 2013 13:45:55 +1300
From: "Robert Sanson" <Robert.Sanson at asurequality.com>
Subject: [Users] OpenLayers on Firefox 25.01
To: <users at geoext.org>,
"openlayers-users at lists.osgeo.org
list"
<openlayers-users at lists.osgeo.org>
Message-ID: <52A71B13020000370002E5F2 at lx-gwgate1.asurequality.com>
Content-Type: text/plain; charset=US-ASCII
Just wondering if anyone else has experienced instabilities
with OpenLayers 2.13.1 / GeoExt 1.1 / Ext-JS 3.4.0 on
Firefox v 25.01 on Windows. When editing features using
drawfeature and snap controls, the browser seems to crash
quite often. Not sure if it is that the Browser has bugs or
whether some of the underlying JS libraries (eg.OL,
Ext-JS 3.4.0) are showing their age?
Many thanks,
Robert Sanson
This email and any attachments are confidential and intended
solely for the addressee(s). If you are not the intended
recipient, please notify us immediately and then delete this
email from your system.
This message has been scanned for Malware and Viruses by
Websense Hosted Security.
www.websense.com
------------------------------
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
End of Users Digest, Vol 59, Issue 2
************************************
More information about the Users
mailing list