Hi,

im new here . Im working on webapp that can add features to the map
and save them via WFS-T. Im using Geoserver + PostgreSQL/postGIS. My
problem is, that when i add new feature to the map, new window with
editorgridpanel item is shown. But in this gridpanel i see all
features from the store (geoext.data.featurestore). I want to see only
the added feature (row).

My code to FeatureStore:

        var store = new GeoExt.data.FeatureStore(
                                                                        {
                                                                        
layer:point,
                                                                        fields:[
                                                                                
        {name: "TXT", type:"string"}
                                                                                
   ]
                                                                        });

And i have event that start after feature is added into the map. New
window with editorgridpanel is shown. i have an idea to aply filter
for store, when will be shown only feature that i want. but i dont
know now how to do it. I tried to test filter like that (for example):

add.events.on(
                     "featureadded":
                                             function()

{add.deactivate();//deactivate tool
                                                            store.filter(
                                                                           [{

     property:"name",

     value:"small_point",
                                                                           }]
                                                                          )
                                                           })
. this work but not for my problem. I just tested it how it works. I
can try make filter with id or gid, but for now with no succes. How
can I solve this problem?

Sorry for my english.


Best regards
:)

-- 
Mgr. Gabriel Petříček
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to