Hi Kenneth, I have found the MGE 2010 samples that I have used, but getting a lot of errors when deploying (not getting the Propety list filled in the Query tak window). I have attached a printscreen.
Dejan On Fri, Jan 15, 2010 at 09:41, Kenneth Skovhede, GEOGRAF A/S <[email protected]>wrote: > I don't have a comple sample that fits your description, > but some bits and pieces (chunks if you prefer). > > I personally use MaestroAPI (for obvious reasons): > http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI > > Using the MaestroAPI samples as a base, I have put together this quick > untested sample of the server code: > > http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/QueryFeatureSource > > Another way to do it is show here: > > http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/FormExpression.cs#L732 > > The interesting line is 751: > using (FeatureSetReader rd = > m_connection.QueryFeatureSource(m_featureSource, m_schema.FullnameDecoded, > filter, new string[] { ColumnName.Text })) > while (rd.Read()) > { } //Read data here > > If you do not want to use MaestroAPI, you can look at the MaestroAPI source > code to figure out > how to use the MgFeatureService object to query features. > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > On 13-01-2010 10:46, Dejan Gregor wrote: > >> Hi, >> >> I am new to development in MapGuide and C# programming. I would like to >> implement a sample C# application for searching multiple fields of a >> vector >> FDO feature class (e.g. parcel numbers and other description). I am using >> MGOS 2.1. >> >> I would need a complete sample code (not just chunks) that I could >> directly >> implement, but maybe searching on the wrong place. I have a simple AJAX >> Viewer, not Fusion. >> >> Does anyone know a place to search or submit a stable search engine >> sample? >> >> Thanks! >> Dejan >> >> ----- >> >> Dejan Gregor, MSc >> GISc Researcher and Consultant >> >> http://www.linkedin.com/in/dgregor >> >> > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users >
<<attachment: query.png>>
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
