We support OGC Filter expressions through the WebServiceRequest tool. =
See the gazetteerTools/PlaceName demo for an example as well as =
http://docs.codehaus.org/display/MAP/Using+OGC+Filter+models. What it =
boils down to is that you create a static XML template for your filter, =
and your custom filter form widget sets the values appropriately into =
the template in the onsubmit method (set the fid attribute in your =
case). Your WebServiceRequest tool for GetFeature points to this filter =
Model which will get automatically set when the request is issued.
> -----Original Message-----
> From: mapbuilder-users-bounces@...
> [mailto:mapbuilder-users-bounces@...] On=20
> Behalf Of Alex Chew
> Sent: March 2, 2007 2:18 AM
> To: Mapbuilder-users@...
> Subject: Re: [Mapbuilder-users] Can somebody show me an=20
> Thanks to perfect architecture of mapbuilder,both questions=20
> can be resolved by extending widgets.
> What i extended is WfsGetFeature and InsertFeature.
> But there is another problem coming,how can i get a specified=20
> feature using fid?
> Such a request is described in WFS specification like this,
> <?xml version=3D"1.0" ?>
> outputFormat=3D"text/xml; subtype=3Dgml/3.1.1"
> ../wfs/1.1.0/WFS.xsd"> <wfs:Query=20
> typeName=3D"myns:InWaterA_1M"> <ogc:Filter> <ogc:GmlObjectId=20
> gml:id=3D"InWaterA_1M.1234"/> </ogc:Filter> </wfs:Query>=20
> How does mapbuilder support such an implementation?
> On 3/1/07, Alex Chew <chew.alex@...> wrote:
> > Hi,
> > I am trying to build a web map project with CRUD operation=20
> of Geo data.
> > Mapbuilder-lib is wonderful.Following xml config=20
> examples-wfs-t demo,I=20
> > can build a prototype application that satisfied all my=20
> > Though,something seems a little complex is rasing.
> > 1,Make map be centered from a mouse click on a feature list.
> > Some whole interested features was listed,and when click=20
> one of them=20
> > the map should show the feature as centerpoint. How to make this?
> > <a href=3D"someClass.someMethod(someParameter)">Point Feature 1</a> =
> > can retrieve featureid when build the list,so featureid can=20
> be one of=20
> > someParameter for wfsGetFeature request.I didn't know which=20
> js method=20
> > can afford such a function,thanks for your help.
> > 2,Query feature info in a customized form and update with a=20
> "submit" button.
> > This can be easily done within wfs-t demo.How to make it=20
> with JS method calls?
> > During the "submit/update" request,I must do something else=20
> not just=20
> > save Feature data.So,I want to control whole "submit" process in a=20
> > piece of js script.
> > <input type=3D"submit" value=3D"Update" onclick=3D"onSubmit()"/>=20
> > //submit feature update. wfsUpdateFeature=20
> > //other operations //...
> > }
> > Can you show me an example how can I realize these requirements?
> > Any advise will be appreciated.Thanks in advance.
> > Alex