Skip to content
New issue

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

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

Open
hutzelknecht opened this issue May 11, 2014 · 5 comments
Open

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

hutzelknecht opened this issue May 11, 2014 · 5 comments

Comments

@hutzelknecht
Copy link
Contributor

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.

@bartvde
Copy link
Member

bartvde commented May 12, 2014

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

@hutzelknecht
Copy link
Contributor Author

Thanks bartvde,

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

@bartvde
Copy link
Member

bartvde commented May 13, 2014

correct @hutzelknecht

@hutzelknecht
Copy link
Contributor Author

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?

@bartvde
Copy link
Member

bartvde commented May 15, 2014

yeah I can probably cook up an example for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants