Searching for an address from a table
Hello,
I have a parcel search workflow that will autofill the address you want and zoom you to the parcel selected. This works great beacuse my Query task is getting the info from my layer in my map service. But because this is a parcel layer we have a one to many relaitionship, so some address will not appear when you type them in. We have a related table that solves this issue for us and it works in the Global search...but I need it to work in a workflow as I want to link this workflow to something else down the line. Any ideas how I can get the workflow to look for every address that is in the table (which is also in the layer) and then return the geometry and zoom to that parcel?
I am new to this, so be easy on me.
thanks
Larisa
-
Hi Larisa,
If I understand your question correctly, in order for the autofill function of the form to return all the address it will have to be directed to query your related address table rather than the parcel layer (assuming the table contains all of the addresses you would like to search).
Using the results from the form you should be able to use the GetObjectIDs task to return the objectIDs from the table results. These IDs can then be submitted to the RelationshipQueryTask that can be used to return the related records from your parcels layer and ultimately provide a Geometry that you can zoom to and select.
-Warren
0 -
Warren,
Yes you are correct, the table contains all of the addresses.
Thank you! I am going to give it a try and see what happens.
thanks
0
Please sign in to leave a comment.
Comments
2 comments