This plugin allows creating form items from attribute records and fill a form panel with these items.
Sample code showing how to use an Ext form panel as a feature attribute form (for editing features for example).
var formPanel = new Ext.form.FormPanel({
autoScroll: true,
height: 300,
width: 350,
defaults: {
maxLengthText: "too long",
minLengthText: "too short"
}
plugins: [
new GeoExt.plugins.AttributeForm({
attributeStore: new GeoExt.data.AttributeStore({
url: "http://some.wfs",
baseParams: {
"SERVICE": "WFS",
"VERSION": "1.1.0",
"REQUEST": "DescribeFeatureType",
"TYPENAME": "the_typename"
}
})
})
]
});
Configuration properties.