We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In GeoExt/widgets/form.js, at line 134. I changed the following to support enumeration constraints for string.
if(type.match(r["text"])) { if(restriction.enumeration) { // Must convert the array into an array of array. var enumeration = new Array(); for ( var i = 0, c = restriction.enumeration.length; i < c; i++ ) { enumeration[i] = [restriction.enumeration[i]]; } var enumerationStore = new Ext.data.ArrayStore({ data : enumeration, fields : [label] }); field = { xtype: "combo", name: name, fieldLabel: 'Letter', store: enumerationStore, mode: 'local', valueField:label, displayField:label, typeAhead: false, forceSelection: true }; } else{ var maxLength = restriction["maxLength"] !== undefined ? parseFloat(restriction["maxLength"]) : undefined; var minLength = restriction["minLength"] !== undefined ? parseFloat(restriction["minLength"]) : undefined; field = { xtype: "textfield", name: name, fieldLabel: label, maxLength: maxLength, minLength: minLength }; } } else if(type.match(r["number"])) {
The text was updated successfully, but these errors were encountered:
Can you share your GML DescribeFeatureType output?
Since AFAICT enumerations are already supported, see:
https://github.com/geoext/geoext/blob/master/lib/GeoExt/widgets/form.js#L188 https://github.com/geoext/geoext/blob/master/tests/lib/GeoExt/widgets/form.js#L49
Sorry, something went wrong.
No branches or pull requests
In GeoExt/widgets/form.js, at line 134. I changed the following to support enumeration constraints for string.
The text was updated successfully, but these errors were encountered: