[Users] Dealing with dynamic data in featureStore and gridpanel
Markus Innerebner
markus.innerebner at inf.unibz.it
Wed Oct 17 15:32:42 CEST 2012
Hello ,
I am trying to make an application that allows to launch sql queries from the client and returns a feature collection as result.
This result have to be stored as well in a table as well in the map as features in a vector layer.
I have
- a datastore: sqlDatastore
- a panel: sqlResultPanel (GridPanel)
- a container: sqlPanel (container in which i store the panel)
I already implemented this. The problem is, when the client performs a different query in which data and structure differs from the previous query, I instantiate a new FeatureStore, a new Grid Panel and a new Layer.
Unfortunately I realize that the old Grid Panel is not correctly removed from the container in which i added this panel and consequentially I see in the container both grid panels.
I did:
// remove grid components from container
sqlDatastore.removeAll(true);
sqlResultTablePanel.removeAll(true);
sqlPanel.remove(sqlResultTablePanel,true);
sqlResultTablePanel.destroy();
Is this the right sequence to destroy: datastore and grid panel?
Do you suggest me instead of instantiating a new Grid Panel to reuse the existing one and update only data store and column model?
thanks for your suggestion.
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20121017/1df07541/attachment.htm
More information about the Users
mailing list