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
Solved! Go to Solution.
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;
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!