AnsweredAssumed Answered

Parse URL Parameters in Tax Parcel Viewer

Question asked by kammerer1 on Jun 23, 2014
Latest reply on Jun 26, 2014 by kammerer1
I've configured the Tax Parcel Viewer (10.2) for our City's needs, and now I would like to be able to parse the URL parameter of an attribute when selected. In other words, when a parcel is selected, I would like the parcel ID to be parsed as a parameter in the URL. Similar to this html5 sample viewer: https://developers.arcgis.com/javascript/jssamples/exp_history.html.

The problem is that I can't figure out how the incorporate this feature into the tax parcel viewer application. I believe it needs to be in the locator.js file,  and could be accomplished with-

"if (selection.length > 0) {
              var getParcel = selection[0].attributes["APN"];
              //Refresh the URL with the currently selected parcel
              if (typeof history.pushState !== "undefined") {
                window.history.pushState(null, null, "?getParcel=" + selection[0].attributes.APN);
              }
            }"

-but I have had any luck getting this to work. I'm wondering if anyone has attempted the same  and maybe had success.

Any help would be much appreciated!

Thank you

Outcomes