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
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users