geoext2 icon indicating copy to clipboard operation
geoext2 copied to clipboard

provide a Model for the GeoExt.form.recordToField() Method.

Open hutzelknecht opened this issue 10 years ago • 5 comments

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.

hutzelknecht avatar May 11 '14 18:05 hutzelknecht

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

bartvde avatar May 12 '14 07:05 bartvde

Thanks bartvde,

makes sense. so the schema is an xsd I asume. Therefor the model for the record is a GeoExt.data.AttributeModel?

hutzelknecht avatar May 12 '14 17:05 hutzelknecht

correct @hutzelknecht

bartvde avatar May 13 '14 08:05 bartvde

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?

hutzelknecht avatar May 15 '14 13:05 hutzelknecht

yeah I can probably cook up an example for this

bartvde avatar May 15 '14 13:05 bartvde