-
Notifications
You must be signed in to change notification settings - Fork 107
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
FeatureStore with Proxy not working correctly with ExtJS 5 #378
Comments
@chrismayer, did you make this work in your application and would you be able to provide a PR? |
Hi @bentrm, I recently started to fix this. Shall I open a PR with the fix for 1.) which can be used a base for further commits? |
It's a good start I guess. The whole Ext-proxy/reader stuff ©️ is a bit hard to reason about.. |
I just opened a PR (#384) which fixes 1.) and can be used as base for further development. |
I have discovered issues which prevent a FeaturStore loading its data via Proxy correctly when using ExtJS 5, like this:
This can be tested with the example here, which is by the way not listed on the GeoExt 2 webpage.
I found 2 reasons for this:
1.) In https://github.com/geoext/geoext2/blob/master/src/GeoExt/data/proxy/Protocol.js#L196 we call
operation.setSuccessful();
which in ExtJS 5 also callsoperation.setCompleted();
and we also call the later explicitly the line before. This leeds to a double call of the operation callbacks, what ends in an empty FeatureStore. In ExtJS 4operation.setSuccessful()
did not calloperation.setCompleted()
so this issue did not appear.2.) Once the data is loaded correctly one will discover that the attributes of the loaded feature(s) are not mapped correctly to the record, so the UIs (e.g. columns a grid) will remain empty. Here it seems we have to apply the attributes explicitly in case of using ExtJS 5.
The text was updated successfully, but these errors were encountered: