I am trying to use a GeoExt.data.attribute store to populate the data field of 
an ext.form.combobox. I have tried to debug using firebird etc to see stuff 
inside neighbourhood_name_store below but it doesn't seem to be working 
properly. When I actually copy the request URL it performs the request 
correctly and I am trying to put the data field as the attribute from the 
request which is like-

- <xs:complexType name="NeighbourhoodsType">
- <xs:complexContent>
- <xs:extension base="gmgml:NeighbourhoodsSubType">
- <xs:sequence>
  <xs:element name="NEIGHBOURHOODID" type="xs:int" />
  <xs:element name="NEIGHBOURHOOD_NAME" 
type="gmgml:Neighbourhoods_NEIGHBOURHOOD_NAMEType" minOccurs="0" />
  <xs:element name="LABEL_LINE1" type="gmgml:Neighbourhoods_LABEL_LINE1Type" 
minOccurs="0" />
  <xs:element name="LABEL_LINE2" type="gmgml:Neighbourhoods_LABEL_LINE2Type" 
minOccurs="0" />
  <xs:element name="LABEL_LINE3" type="gmgml:Neighbourhoods_LABEL_LINE3Type" 
minOccurs="0" />
  <xs:element name="YearBuilt" type="gmgml:Neighbourhoods_YearBuiltType" 
minOccurs="0" />
  <xs:element name="Geometry" 
type="gmgml:Polygon_Surface_MultiSurface_CompositeSurfacePropertyType" 
minOccurs="0" />
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>


Not sure why but it doesn't seem to be working, appreciate any assistance.

var neighbourhood_name_store = new GeoExt.data.AttributeStore({
    url: 
"http://localhost/RedWFS/request.aspx?REQUEST=describeFeatureType&SERVICE=WFS&version=1.1.0&typename=Neighbourhoods";
    });

    neighbourhood_name_store.load();

    alert(neighbourhood_name_store.feature);

  //Type dropdown
 var neighbourhoodCombo = new Ext.form.ComboBox({
     fieldLabel: 'Neighbourhood Name',
     boxMaxWidth: 159,
     name: 'neighbourhood_Name',
     hiddenName: 'NEIGHBOURHOOD_NAME',
     forceSelection: true,
     store:neighbourhood_name_store,
     valueField: 'NEIGHBOURHOOD_NAME',
     emptyText: "NEIGHBOURHOOD_NAME",
     displayField: "NEIGHBOURHOOD_NAME",
     selectOnFocus: true
     });








_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to