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, [email protected] <[email protected]> 
a écrit :

 Objet: Users Digest, Vol 59, Issue 2
 À: [email protected]
 Date: Mardi 10 décembre 2013, 12h00
 
 Send Users mailing list submissions
 to
     [email protected]
 
 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
     [email protected]
 
 You can reach the person managing the list at
     [email protected]
 
 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" <[email protected]>
 Subject: [Users] OpenLayers on Firefox 25.01
 To: <[email protected]>,
 "[email protected]
 list"
     <[email protected]>
 Message-ID: <[email protected]>
 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
 [email protected]
 http://www.geoext.org/cgi-bin/mailman/listinfo/users
 
 
 End of Users Digest, Vol 59, Issue 2
 ************************************
 
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to