<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I added 'ignore : {type : "xsd:string"}' to the attributeStore.<br>
<br>
var attributeStore = new GeoExt.data.AttributeStore({
<br>
url:
"geoserverurl+"?VERSION:1.0&REQUEST=DescribeFeatureType&TYPENAME="
+
myLayer
,<br>
>>> ignore : {type : "xsd:string"} <<<<br>
});
<br>
<br>
Regards<br>
<br>
Sascha<br>
<br>
<blockquote cite="mid:4C88FFC5.2030707@arcor.de" type="cite">
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-15">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">Hi,
<br>
<br>
I use:
<br>
<br>
- GeoExt: trunk (08_2010)
<br>
- OpenLayers: 2.9.1
<br>
- GeoServer: 1.7.7
<br>
<br>
I use the attribute-Form like in the GeoExt Examples. Now, I want only
attributes where the type is not a 'string'.
<br>
Where do I have to do this? Inside the GeoExt.data.AttributeStore?
<br>
<br>
var attributeStore = new GeoExt.data.AttributeStore({
<br>
url:
"geoserverurl+"?VERSION:1.0&REQUEST=DescribeFeatureType&TYPENAME="
+
myLayer
<br>
});
<br>
<br>
form = new Ext.form.FormPanel({
<br>
renderTo: document.body,
<br>
autoScroll: true,
<br>
height: 300,
<br>
width: 350,
<br>
defaults: {
<br>
width: 120,
<br>
maxLengthText: "too long",
<br>
minLengthText: "too short"
<br>
},
<br>
plugins: [
<br>
new GeoExt.plugins.AttributeForm({
<br>
attributeStore: attributeStore
<br>
})
<br>
]
<br>
});
<br>
<br>
attributeStore.load();
<br>
<br>
<br>
Thanks
<br>
<br>
Sascha
<br>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>