Hello,
I am having an issue using the example: https://developers.arcgis.com/javascript/jssamples/exp_history.html
Essentially I am using this to locate structures based on an account number. It seems to be selecting the structures when I click on them, but not when the parameter is passed through the URL.
My github for the project is: https://github.com/jrzimmerman/AccountParam/blob/master/accountparam.htm
Live: http://207.255.7.12/AccountParam/accountparam.htm?accountno=1035556
Any help is greatly appreciated!
Thanks,
Justin Zimmerman
Justin ,
Your issue is simple your AccountNo field is a double and your query where clause is setup for a string query.
Is currently:
query.where = "AccountNo = '" + accountno + "'";
Should be:
query.where = "AccountNo = " + accountno;
Thanks Robert! I am glad it was an easy fix, I should've thought about the field data type. Thanks!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.