-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a second field to the result of Find widget #213
Comments
Yes you can I think its buried in Find.js (note uppercase F). Im on my phone now but I will post a better response tommorow, unless @tmcgee beats me to it. ;) |
Hello Mesquite, The ESRI's FindTask used by the Find Widget works across multiple layers and fields and so the response only returns 3 fields:
The response from ESRI's QueryTask can contain any and all fields from a layer. There isn't a CMV widget currently available that works with the QueryTask. I have a pair of widgets completed for a client that do work with the QueryTask and I now have the ok to provide them to CMV. I will be packaging them up for submission to this project. |
Okay, thanks. Unless friendde has a work around I'll leave it at that. Thanks! |
Sorry no work around. In a previous version of CMV, only one (or two??) of the above mentioned response results were coded to display. I modified that previously and I was thinking that was your question as well. But since then @tmcgee exposed all of them. Are you seeing something similar as in my screen shot? |
Thank you all for your help and comments! |
@MesquiteGIS I know now this is not what you were asking, but you can display the third (and final) column which is the field name. That was the piece I was suggesting in response to your post. By default the third column is hidden. I updated the Wiki, https://github.com/cmv/cmv-app/wiki/Widget-find.js if you want to display it. I also added a note about the default sorting. |
This may be new in the latest version of the api but the FindResult returns the found feature with attributes. |
Nice! I believe that was added in a recent version of the API. Certainly was not there back at 3.8 or 3.9 when the Find widget was first written. |
Thanks, I'll do some updating. On Tue, Jan 20, 2015 at 2:27 PM, Tim McGee notifications@github.com wrote:
Ryan Kammerer, GISP Confidentiality Statement: The information contained in this electronic mail is confidential If the reader of this message is not the intended recipient, you are hereby |
I'm wondering if it is possible to add a second field to the results of the Find widget. That is when a result is found using the find query, the results window displays two fields, say Parcel ID and Address, rather than just one.
Thanks!
The text was updated successfully, but these errors were encountered: