geoext2
geoext2 copied to clipboard
provide a Model for the GeoExt.form.recordToField() Method.
Hi - i just stumbled upon a helper method "recordToField" to translate a record (representing a field) into a field. I don't fully undestand why this method is part or GeoExt. Where is or was this method used before? Is someone actually using this method? I think it would be either useful to supply a model for the record, that is used as first argument with this method or expand the documentation so it is clear what the record should look like. Maybe an example page would be nice.
yes I am using this method, it was also part of GeoExt 1:
https://github.com/bartvde/gxp2/blob/master/src/gxp/grid/FeatureEditor.js#L55
Thanks bartvde,
makes sense. so the schema is an xsd I asume. Therefor the model for the record is a GeoExt.data.AttributeModel?
correct @hutzelknecht
this cries for an example. @bartvde do you have any example code for this - maybe similar to your FeatureEditor.js Class? Maybe some Example Data and a Schema?
yeah I can probably cook up an example for this