Select to view content in your preferred language

ArcReader App- how to zoom to a selected feature

3218
1
07-28-2011 08:40 AM
scotthiggins1
Emerging Contributor
I've been mucking about with a custom ArcReader application in VB.

I have a DataGrid connected to a Text Box query that searches Parcel records and filters that Data Grid to only the selected records in the query. No prob.

DataGridView1.DataSource = Me.NBMCA_DATADataSet.NBMCA.Select("Parcels_Arn Like'" & Parcel & "'")

My next step is to try and zoom the Map focus to the selected results. 

In the .pmf the parcel layer is called "Assessment Parcel" in the ToC. The display field is called {ASSESSMENT}.

How do I query upon a single Map Layer in the .pmf, based on Attribute Data in the drawing/shape?

I've tried dissecting the AttributeQuery example, but it picks all the layers in the .pmf and allows feature query choice. I just want to query the Parcel fabric, one layer.

Any assistance would be greatly appreciated, even if its a hint or two.
Tags (2)
0 Kudos
1 Reply
scotthiggins1
Emerging Contributor
Okay this is going slow. I wish there was a better reference available for ArcReaderControl.

According to this old thread:

http://forums.esri.com/Thread.asp?c=113&f=1142&t=216006

... the Layer, and fields are numerically referenced, correct? I wish the solution used in this thread was referenced.

The parcel layer in my .pmf is the 10th map layer, and the roll# field is the First field.

How do I set the AxReaderControl to focus on the Assessment Roll# field from the layer  that equals or is like the  string entered in the text box that searches and sorts the database? It should be simple, easy peasy, but cannot get it to work.
0 Kudos